Skip to content

BKHMSI/Font-To-Sketch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Font-To-Sketch: Morphing Any Font to a Visual Representation

Huggingface Space Colab Notebook



This project builds on the Word-As-Image for Semantic Typography work to support any font and morphing whole words into a visual representation of a semantic concept. It is part of an ongoing project with the ARBML community to build open-source Arabic tools using machine learning.

The demo currently supports the following scripts: Arabic, Simplified Chinese, Cyrillic, Greek, Latin, Tamil. Therefore you can write the text in any language using those scripts. To add support for more fonts please check below.

Contributing to Font Support

Thank you for your interest in expanding the font collection! To support additional fonts, please follow these steps:

  1. Navigate to the code/data/fonts directory.
  2. Locate the folder corresponding to the script name you wish to add a font for. If the script is not currently supported, create a new folder with the script name.
  3. Add the desired .ttf font file to the appropriate folder.
  4. Please ensure the font file is less than 1MB in size.
  5. Retain the original font name when adding the file.

For browsing and downloading open-source fonts, we recommend visiting Google Fonts.

Thank you for your contributions in advancing our font selection!

Examples

The first GIF you see above morphs the word 'car' in 5 languages into a sketch of a car.

The second GIF contains 7 outputs of the program when given the Arabic name of an animal in text and asked to morph it into a visual representation of the actual animal. The input of course can be any text and the output any concept.

For more examples please see the files under ./images

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.8%
  • Shell 4.2%