Answers the glyph names of the font. >>> from pagebot.fonttoolbox.objects.font import Font >>> from pagebot.fonttoolbox.fontpaths import getTestFontsPath >>> fontPath = getTestFontsPath() >>> path = fontPath + '/fontbureau/Amstelvar-Roman-VF.ttf' >>> f = getF
(self)
| 848 | return sum(matches)/len(matches) # Normalize to value between 0..1 |
| 849 | |
| 850 | def keys(self): |
| 851 | """Answers the glyph names of the font. |
| 852 | |
| 853 | >>> from pagebot.fonttoolbox.objects.font import Font |
| 854 | >>> from pagebot.fonttoolbox.fontpaths import getTestFontsPath |
| 855 | >>> fontPath = getTestFontsPath() |
| 856 | >>> path = fontPath + '/fontbureau/Amstelvar-Roman-VF.ttf' |
| 857 | >>> f = getFont(path, lazy=False) |
| 858 | >>> 'A' in f.keys() |
| 859 | True |
| 860 | """ |
| 861 | if 'glyf' in self.ttFont: |
| 862 | return self.ttFont['glyf'].keys() |
| 863 | return [] |
| 864 | |
| 865 | def _get_cmap(self): |
| 866 | """Answers the dictionary of sorted {unicode: glyphName, ...} in the |
no outgoing calls
no test coverage detected