README 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. NebOS UI fonts
  2. ==============
  3. The window manager, ngui applications and the browser use the fixed-point
  4. TrueType engine in ufont.c / ufont_ttf.c. The kernel boot console keeps the
  5. built-in 8x8 font; the terminal, editor and text fields keep the 8x16 bitmap
  6. font for their cell grids.
  7. Files
  8. -----
  9. sans.ttf Arimo Regular, Latin-1 + common punctuation
  10. sans-b.ttf Arimo Bold
  11. sans-i.ttf Arimo Italic
  12. sans-bi.ttf Arimo BoldItalic
  13. mono.ttf Liberation Mono Regular (browser <pre>/<code>)
  14. emoji.ttf Noto Emoji monochrome subset (common emoji, cmap 12)
  15. emoji-unicodes.txt
  16. the curated codepoints used to generate emoji.ttf
  17. The Arimo faces are Copyright 2020 The Arimo Project Authors and are
  18. distributed under the Apache License 2.0 (see LICENSE-Apache-2.0). Liberation
  19. Mono is copyright (c) 2012 Red Hat, Inc. with Reserved Font Name Liberation
  20. and is distributed under the SIL Open Font License 1.1 (see LICENSE-OFL).
  21. Noto Emoji is Copyright 2013 Google Inc. and is distributed under the SIL
  22. Open Font License 1.1; emoji.ttf contains a curated subset of the monochrome
  23. Noto Emoji face. The subsets remove unused glyphs and OpenType layout
  24. features and keep the files small enough for the rootfs pack.
  25. The emoji subset is limited to glyphs that fit the fixed-point rasterizer
  26. (256 points / 16 contours per glyph) and to common single-codepoint emoji;
  27. ZWJ sequences, flags and color glyphs are not supported. The list is in
  28. fonts/emoji-unicodes.txt.
  29. Regenerating
  30. ------------
  31. Install fonttools (`python3 -m pip install fonttools`) and run:
  32. make fonts
  33. or manually:
  34. pyftsubset /usr/share/fonts/croscore/Arimo-Regular.ttf \
  35. --unicodes='U+0020-00FF,U+20AC,U+2013-2014,U+2018-2019,U+201C-201D,U+2022,U+2026,U+00A0' \
  36. --layout-features='' --output-file=fonts/sans.ttf
  37. The emoji subset is regenerated from a monochrome Noto Emoji TTF (for
  38. example the Google Fonts `Noto Emoji` regular face) with:
  39. pyftsubset NotoEmoji.ttf --unicodes-file=fonts/emoji-unicodes.txt \
  40. --layout-features='' --output-file=fonts/emoji.ttf
  41. The checked-in files are the canonical build inputs; a normal `make` does not
  42. need fonttools or the original system fonts. Do not edit the generated TTFs
  43. by hand.