1
0
mirror of https://github.com/google/fonts.git synced 2024-12-26 10:12:06 +03:00
fonts/tools/encodings
2016-11-17 10:54:21 +01:00
..
GF 2016 Glyph Sets Fix polish locl from PLN to PLK 2016-11-17 10:54:21 +01:00
arabic_unique-glyphs.nam Update some nam files and add a few new ones. 2016-01-11 14:48:56 -08:00
bengali_unique-glyphs.nam Add names of unicode characters to nam files 2016-01-28 14:47:19 -08:00
cyrillic_unique-glyphs.nam tools/encodings/cyrillic*.nam Remove old afiXXXX labels 2016-02-06 20:05:59 -05:00
cyrillic-ext_unique-glyphs.nam tools/encodings/cyrillic*.nam Remove old afiXXXX labels 2016-02-06 20:05:59 -05:00
devanagari_unique-glyphs.nam Add names of unicode characters to nam files 2016-01-28 14:47:19 -08:00
ethiopic_unique-glyphs.nam Add encodings/ethiopic_unique-glyphs.nam 2016-01-15 14:28:13 -05:00
greek_unique-glyphs.nam Add names of unicode characters to nam files 2016-01-28 14:47:19 -08:00
greek-ext_unique-glyphs.nam Add names of unicode characters to nam files 2016-01-28 14:47:19 -08:00
gujarati_unique-glyphs.nam Add names of unicode characters to nam files 2016-01-28 14:47:19 -08:00
gurmukhi_unique-glyphs.nam Add names of unicode characters to nam files 2016-01-28 14:47:19 -08:00
hebrew_unique-glyphs.nam Update some nam files and add a few new ones. 2016-01-11 14:48:56 -08:00
japanese_unique-glyphs.nam Update some nam files and add a few new ones. 2016-01-11 14:48:56 -08:00
kannada_unique-glyphs.nam Add names of unicode characters to nam files 2016-01-28 14:47:19 -08:00
khmer_unique-glyphs.nam Add names of unicode characters to nam files 2016-01-28 14:47:19 -08:00
lao_unique-glyphs.nam Update some nam files and add a few new ones. 2016-01-11 14:48:56 -08:00
latin_unique-glyphs.nam Add names of unicode characters to nam files 2016-01-28 14:47:19 -08:00
latin-ext_unique-glyphs.nam Add names of unicode characters to nam files 2016-01-28 14:47:19 -08:00
malayalam_unique-glyphs.nam Add names of unicode characters to nam files 2016-01-28 14:47:19 -08:00
myanmar_unique-glyphs.nam Update some nam files and add a few new ones. 2016-01-11 14:48:56 -08:00
oriya_unique-glyphs.nam Adding encodings/oriya_unique-glyphs.nam 2016-01-15 15:18:48 -05:00
README.md Update README.md 2016-06-28 19:54:03 -04:00
sinhala_unique-glyphs.nam Add names of unicode characters to nam files 2016-01-28 14:47:19 -08:00
tamil_unique-glyphs.nam Add names of unicode characters to nam files 2016-01-28 14:47:19 -08:00
telugu_unique-glyphs.nam I<3 nam files 2015-03-16 11:14:46 -07:00
thai_unique-glyphs.nam Add names of unicode characters to nam files 2016-01-28 14:47:19 -08:00
vietnamese_unique-glyphs.nam Add names of unicode characters to nam files 2016-01-28 14:47:19 -08:00
wgl-latin.enc I<3 nam files 2015-03-16 11:14:46 -07:00

This directory contains 'namelist' files, that list unicode characters followed by glyph names or glyph descriptions.

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.

The Google Fonts API uses these files in combination with pyftsubset to generate script subsets from the full .ttf files in this repository.

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. Comments are lines starting with #.

A python script, tools/namelist.py can generate these files:

namelist.py Font.ttf > NameList.nam

The [wgl-latin.enc] file can be used by Fontlab Studio 5, and represented Microsoft's Windows Glyph List 4 glyph set.

A python script, tools/unicode_names.py can reformat these files:

python unicode_names.py --nam_file=encodings/latin_unique-glyphs.nam;
0x0020    SPACE
0x0021  ! EXCLAMATION MARK
0x0022  " QUOTATION MARK
0x0023  # NUMBER SIGN
...