tree: 1a590db071c341d61cf26a5166abf5523a3cff5b [path history] [tgz]
  1. CarroisGothicSC-Regular.ttf
  2. ComingSoon.ttf
  3. create_minimized_roboto.sh
  4. CutiveMono.ttf
  5. DancingScript-Bold.ttf
  6. DancingScript-Regular.ttf
  7. DroidSansFallback.ttf
  8. DroidSansMono.ttf
  9. fonts.xml
  10. LICENSES.txt
  11. MinimalRoboto.ttf
  12. minimized_roboto_subset_chars.txt
  13. MTLmr3m.ttf
  14. NanumGothic.ttf
  15. NotoEmoji-Regular.ttf
  16. NotoNaskhArabicUI-Bold.ttf
  17. NotoNaskhArabicUI-Regular.ttf
  18. NotoSansArmenian-Bold.ttf
  19. NotoSansArmenian-Regular.ttf
  20. NotoSansBalinese-Regular.ttf
  21. NotoSansBamum-Regular.ttf
  22. NotoSansBatak-Regular.ttf
  23. NotoSansBengaliUI-Bold.ttf
  24. NotoSansBengaliUI-Regular.ttf
  25. NotoSansBuginese-Regular.ttf
  26. NotoSansBuhid-Regular.ttf
  27. NotoSansCanadianAboriginal-Regular.ttf
  28. NotoSansCham-Bold.ttf
  29. NotoSansCham-Regular.ttf
  30. NotoSansCherokee-Regular.ttf
  31. NotoSansCoptic-Regular.ttf
  32. NotoSansDevanagariUI-Bold.ttf
  33. NotoSansDevanagariUI-Regular.ttf
  34. NotoSansEthiopic-Bold.ttf
  35. NotoSansEthiopic-Regular.ttf
  36. NotoSansGeorgian-Bold.ttf
  37. NotoSansGeorgian-Regular.ttf
  38. NotoSansGlagolitic-Regular.ttf
  39. NotoSansGujaratiUI-Bold.ttf
  40. NotoSansGujaratiUI-Regular.ttf
  41. NotoSansGurmukhiUI-Bold.ttf
  42. NotoSansGurmukhiUI-Regular.ttf
  43. NotoSansHanunoo-Regular.ttf
  44. NotoSansHebrew-Bold.ttf
  45. NotoSansHebrew-Regular.ttf
  46. NotoSansJavanese-Regular.ttf
  47. NotoSansJP-Regular.otf
  48. NotoSansKannadaUI-Bold.ttf
  49. NotoSansKannadaUI-Regular.ttf
  50. NotoSansKayahLi-Regular.ttf
  51. NotoSansKhmerUI-Bold.ttf
  52. NotoSansKhmerUI-Regular.ttf
  53. NotoSansKR-Regular.otf
  54. NotoSansLaoUI-Bold.ttf
  55. NotoSansLaoUI-Regular.ttf
  56. NotoSansLepcha-Regular.ttf
  57. NotoSansLimbu-Regular.ttf
  58. NotoSansLisu-Regular.ttf
  59. NotoSansMalayalamUI-Bold.ttf
  60. NotoSansMalayalamUI-Regular.ttf
  61. NotoSansMandaic-Regular.ttf
  62. NotoSansMeeteiMayek-Regular.ttf
  63. NotoSansMongolian-Regular.ttf
  64. NotoSansMyanmarUI-Bold.ttf
  65. NotoSansMyanmarUI-Regular.ttf
  66. NotoSansNewTaiLue-Regular.ttf
  67. NotoSansNKo-Regular.ttf
  68. NotoSansOlChiki-Regular.ttf
  69. NotoSansOriyaUI-Bold.ttf
  70. NotoSansOriyaUI-Regular.ttf
  71. NotoSansRejang-Regular.ttf
  72. NotoSansSaurashtra-Regular.ttf
  73. NotoSansSC-Regular.otf
  74. NotoSansSinhala-Bold.ttf
  75. NotoSansSinhala-Regular.ttf
  76. NotoSansSundanese-Regular.ttf
  77. NotoSansSylotiNagri-Regular.ttf
  78. NotoSansSymbols-Regular-Subsetted.ttf
  79. NotoSansSyriacEstrangela-Regular.ttf
  80. NotoSansTagbanwa-Regular.ttf
  81. NotoSansTaiLe-Regular.ttf
  82. NotoSansTaiTham-Regular.ttf
  83. NotoSansTaiViet-Regular.ttf
  84. NotoSansTamilUI-Bold.ttf
  85. NotoSansTamilUI-Regular.ttf
  86. NotoSansTC-Regular.otf
  87. NotoSansTeluguUI-Bold.ttf
  88. NotoSansTeluguUI-Regular.ttf
  89. NotoSansThaana-Bold.ttf
  90. NotoSansThaana-Regular.ttf
  91. NotoSansThaiUI-Bold.ttf
  92. NotoSansThaiUI-Regular.ttf
  93. NotoSansTibetan-Regular.ttf
  94. NotoSansTifinagh-Regular.ttf
  95. NotoSansVai-Regular.ttf
  96. NotoSansYi-Regular.ttf
  97. NotoSerif-Bold.ttf
  98. NotoSerif-BoldItalic.ttf
  99. NotoSerif-Italic.ttf
  100. NotoSerif-Regular.ttf
  101. README.md
  102. Roboto-Bold.ttf
  103. Roboto-BoldItalic.ttf
  104. Roboto-Italic.ttf
  105. Roboto-Regular.ttf
src/cobalt/content/fonts/README.md

Generating a minimal font for devices with small space requirements

GlyphIGo was used to generate a subset of the Roboto font

cobalt/content/fonts contains a script called create_minimized_roboto.sh that can help recreate minimized font if needed

Steps:

  1. cd src/cobalt/content/fonts
  2. ./create_minimized_roboto.sh
  3. Download fontforge using apt. sudo apt install fontforge
  4. In fontforge, navigate the menu: Encoding->Reencode->Glyph Order. Scroll to the top, find the first glyph. By spec, this glyph is called .notdef, and is used when this font is the default font and there glyph for a character we're looking for is missing in the file. Often this will be blank after the last step, which can be undesired.
  5. Copy .notdef glyph from a different font.
    1. Open a different font.
    2. Find the .notdef glyph.
    3. Select the glyph without opening it.
    4. Navigate the menu: Edit->Copy from the font you want to copy from.
    5. Switch focus to the minimized font.
    6. Select .notdef glyph.
    7. Navigate the menu: Edit->Paste.
  6. Export the font using the menu: File->Generate Fonts..., make sure that the file name is correct.
  7. Fix any errors if found, or if you can.