CTXFont (Context Font) is a dataset for studying font selection in the context of web design. It contains 1,065 professional web designs from awwwards.com with annotations for 4,893 text elements. Each text element is annotated with font properties including font face, color (RGBA), and size, along with contextual information such as HTML tags, design tags, and element positioning. The dataset includes 492 unique font faces and provides 40-dimensional font face embeddings learned using an autoencoder. Web design screenshots are included at 768Γ1366 resolution.
The dataset was created for the task of predicting font properties (face, color, size) that match a given web design context, enabling automatic font selection systems that consider the visual and semantic context of the design.
The dataset is split into training (4,268 examples) and test (625 examples) sets.
No public leaderboard is currently available for this dataset.
The text content in the dataset is primarily in English, though the dataset focuses on visual and typographic properties rather than language modeling. Design tags and HTML tags are also in English.
A typical example from the dataset:
{
'design_name': '1003_2.png',
'design_image': <PIL.Image.Image image mode=RGB size=768x1366>,
'design_url': 'http://example.com/design',
'awwward_url': 'https://www.awwwards.com/sites/...',
'design_tags': [1, 0, 0, ...], # 54-dimensional binary vector
'text_content': 'WE ARE A CREATIVE DIGITAL AGENCY',
'html_tags': [0, 0, 1, ...], # 10-dimensional binary vector
'font_face': 'Roboto',
'font_size': 12.0,
'font_color_r': 210,
'font_color_g': 175,
'font_color_b': 146,
'font_color_a': 255,
'font_face_embedding': [0.123, -0.456, ...], # 40-dimensional embedding
'center_x': 113,
'center_y': 200,
'width': 220.0,
'height': 44
}
design_name (string): Filename of the web design screenshot (e.g., "1003_2.png")design_image (image): Screenshot of the web design at 768Γ1366 resolution (PNG format)design_url (string): URL of the original websiteawwward_url (string): URL on awwwards.comdesign_tags (sequence of uint8): 54-dimensional binary vector representing design characteristics (e.g., "colorful", "minimalist")text_content (string): The actual text content of the elementhtml_tags (sequence of uint8): 10-dimensional binary vector representing HTML tag (e.g., h1, p, a)font_face (string): Name of the font face usedfont_size (float32): Font size in pixelsfont_color_r (uint8): Red channel of font color (0-255)font_color_g (uint8): Green channel of font color (0-255)font_color_b (uint8): Blue channel of font color (0-255)font_color_a (uint8): Alpha channel of font color (0-255)font_face_embedding (sequence of float32): 40-dimensional embedding of the font face learned via autoencodercenter_x (uint16): X-coordinate of the element's center positioncenter_y (uint16): Y-coordinate of the element's center positionwidth (float32): Width of the text element in pixelsheight (uint16): Height of the text element in pixelsThe dataset is split into two sets:
| train | test | |
|---|---|---|
| Examples | 4,268 | 625 |
The split is based on unique web designs, ensuring that all text elements from the same design appear in the same split.
The dataset was created to enable research on context-aware font selection for web design. Traditional font selection tools model fonts in isolation without considering the visual and semantic context where they are used. This dataset enables the development of systems that can automatically suggest fonts that match the style, mood, and purpose of a given web design.
The source data consists of professional web designs from awwwards.com, a platform where web designers submit their work for peer review and recognition.
The authors collected 1,065 web designs from awwwards.com, capturing screenshots at 768Γ1366 resolution (the most common screen resolution at the time). They automatically extracted font properties and text element information by parsing HTML source files. The dataset includes:
Not all fonts shown on webpages could be captured, as some may be embedded in images.
The source content was created by professional web designers who submitted their work to awwwards.com. These designers represent the global web design community and created the designs for various clients and purposes.
The annotations consist of font properties and contextual information for text elements on web designs.
The annotations were automatically extracted from HTML and CSS source files of the web designs. For each text element visible on a webpage, the following were extracted:
Font face embeddings were computed using a separately trained autoencoder network.
The annotations are machine-generated from HTML/CSS parsing. The design tags were provided by the original web designers who created the designs.
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
@article{zhao2018modeling,
title={Modeling Fonts in Context: Font Prediction on Web Designs},
author={Zhao, Nanxuan and Cao, Ying and Lau, Rynson W.H.},
journal={Computer Graphics Forum},
volume={37},
number={7},
year={2018},
publisher={The Eurographics Association and John Wiley \& Sons Ltd.}
}
Thanks to @nanxuanzhao for adding this dataset.
8 commits
CTXFont (Context Font) is a dataset for studying font selection in the context of web design. It contains 1,065 professional web designs from awwwards.com with annotations for 4,893 text elements. Each text element is annotated with font properties including font face, color (RGBA), and size, along with contextual information such as HTML tags, design tags, and element positioning. The dataset includes 492 unique font faces and provides 40-dimensional font face embeddings learned using an autoencoder. Web design screenshots are included at 768Γ1366 resolution.
The dataset was created for the task of predicting font properties (face, color, size) that match a given web design context, enabling automatic font selection systems that consider the visual and semantic context of the design.
The dataset is split into training (4,268 examples) and test (625 examples) sets.
No public leaderboard is currently available for this dataset.
The text content in the dataset is primarily in English, though the dataset focuses on visual and typographic properties rather than language modeling. Design tags and HTML tags are also in English.
A typical example from the dataset:
{
'design_name': '1003_2.png',
'design_image': <PIL.Image.Image image mode=RGB size=768x1366>,
'design_url': 'http://example.com/design',
'awwward_url': 'https://www.awwwards.com/sites/...',
'design_tags': [1, 0, 0, ...], # 54-dimensional binary vector
'text_content': 'WE ARE A CREATIVE DIGITAL AGENCY',
'html_tags': [0, 0, 1, ...], # 10-dimensional binary vector
'font_face': 'Roboto',
'font_size': 12.0,
'font_color_r': 210,
'font_color_g': 175,
'font_color_b': 146,
'font_color_a': 255,
'font_face_embedding': [0.123, -0.456, ...], # 40-dimensional embedding
'center_x': 113,
'center_y': 200,
'width': 220.0,
'height': 44
}
design_name (string): Filename of the web design screenshot (e.g., "1003_2.png")design_image (image): Screenshot of the web design at 768Γ1366 resolution (PNG format)design_url (string): URL of the original websiteawwward_url (string): URL on awwwards.comdesign_tags (sequence of uint8): 54-dimensional binary vector representing design characteristics (e.g., "colorful", "minimalist")text_content (string): The actual text content of the elementhtml_tags (sequence of uint8): 10-dimensional binary vector representing HTML tag (e.g., h1, p, a)font_face (string): Name of the font face usedfont_size (float32): Font size in pixelsfont_color_r (uint8): Red channel of font color (0-255)font_color_g (uint8): Green channel of font color (0-255)font_color_b (uint8): Blue channel of font color (0-255)font_color_a (uint8): Alpha channel of font color (0-255)font_face_embedding (sequence of float32): 40-dimensional embedding of the font face learned via autoencodercenter_x (uint16): X-coordinate of the element's center positioncenter_y (uint16): Y-coordinate of the element's center positionwidth (float32): Width of the text element in pixelsheight (uint16): Height of the text element in pixelsThe dataset is split into two sets:
| train | test | |
|---|---|---|
| Examples | 4,268 | 625 |
The split is based on unique web designs, ensuring that all text elements from the same design appear in the same split.
The dataset was created to enable research on context-aware font selection for web design. Traditional font selection tools model fonts in isolation without considering the visual and semantic context where they are used. This dataset enables the development of systems that can automatically suggest fonts that match the style, mood, and purpose of a given web design.
The source data consists of professional web designs from awwwards.com, a platform where web designers submit their work for peer review and recognition.
The authors collected 1,065 web designs from awwwards.com, capturing screenshots at 768Γ1366 resolution (the most common screen resolution at the time). They automatically extracted font properties and text element information by parsing HTML source files. The dataset includes:
Not all fonts shown on webpages could be captured, as some may be embedded in images.
The source content was created by professional web designers who submitted their work to awwwards.com. These designers represent the global web design community and created the designs for various clients and purposes.
The annotations consist of font properties and contextual information for text elements on web designs.
The annotations were automatically extracted from HTML and CSS source files of the web designs. For each text element visible on a webpage, the following were extracted:
Font face embeddings were computed using a separately trained autoencoder network.
The annotations are machine-generated from HTML/CSS parsing. The design tags were provided by the original web designers who created the designs.
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
@article{zhao2018modeling,
title={Modeling Fonts in Context: Font Prediction on Web Designs},
author={Zhao, Nanxuan and Cao, Ying and Lau, Rynson W.H.},
journal={Computer Graphics Forum},
volume={37},
number={7},
year={2018},
publisher={The Eurographics Association and John Wiley \& Sons Ltd.}
}
Thanks to @nanxuanzhao for adding this dataset.
8 commits