1
0
mirror of https://github.com/google/fonts.git synced 2024-12-18 14:21:47 +03:00
fonts/tools/encodings/README.md

16 lines
1.0 KiB
Markdown
Raw Normal View History

2015-06-18 05:15:15 +03:00
This directory contains 'namelist' files, that list unicode characters followed by glyph names or glyph descriptions.
2016-02-05 18:15:42 +03:00
Typically all the Unicodes in each file are in each font.
If the fonts go beyond that list, those additional characters will not be available to Fonts API end users.
2015-06-18 05:15:15 +03:00
The Google Fonts API uses these files in combination with [pyftsubset](https://github.com/behdad/fonttools/blob/master/Lib/fontTools/subset.py) to generate script subsets from the full `.ttf` files in this repository.
2016-02-05 18:15:42 +03:00
The subsetting requires that each line must start with `0x` and then have 4 **uppercase** hex digits; what follows is an arbitrary description to the end of the line.
2015-06-18 05:15:15 +03:00
Comments are lines starting with `#`.
A python script, `[namelist.py](namelist.py)` can generate these files:
namelist.py Font.ttf > NameList.nam
The `[wgl-latin.enc]` file can be used by [Fontlab Studio 5](http://www.fontlab.com), and represented Microsoft's [Windows Glyph List 4](https://en.wikipedia.org/wiki/Windows_Glyph_List_4) glyph set.