Modeling Fonts in Context : Font Prediction on Web Designs

Research output: Journal Publications and ReviewsRGC 21 - Publication in refereed journalpeer-review

20 Scopus Citations
View graph of relations


Related Research Unit(s)


Original languageEnglish
Pages (from-to)385-395
Journal / PublicationComputer Graphics Forum
Issue number7
Online published24 Oct 2018
Publication statusPublished - Oct 2018


Web designers often carefully select fonts to fit the context of a web design to make the design look aesthetically pleasing and effective in communication. However, selecting proper fonts for a web design is a tedious and time-consuming task, as each font has many properties, such as font face, color, and size, resulting in a very large search space. In this paper, we aim to model fonts in context, by studying a novel and challenging problem of predicting fonts that match a given web design. To this end, we propose a novel, multi-task deep neural network to jointly predict font face, color and size for each text element on a web design, by considering multi-scale visual features and semantic tags of the web design. To train our model, we have collected a CTXFont dataset, which consists of 1k professional web designs, with labeled font properties. Experiments show that our model outperforms the baseline methods, achieving promising qualitative and quantitative results on the font selection task. We also demonstrate the usefulness of our method in a font selection task via a user study.

Bibliographic Note

Full text of this publication does not contain sufficient affiliation information. With consent from the author(s) concerned, the Research Unit(s) information for this record is based on the existing academic department affiliation of the author(s).

Citation Format(s)

Modeling Fonts in Context: Font Prediction on Web Designs. / Zhao, Nanxuan; Cao, Ying; Lau, Rynson W.H.
In: Computer Graphics Forum, Vol. 37, No. 7, 10.2018, p. 385-395.

Research output: Journal Publications and ReviewsRGC 21 - Publication in refereed journalpeer-review