How can I get glyphs' names beyond 0x10000 in FF?
WAY KYI
Posts: 140
I want to print all graphs' names into a file in FF. Currently, build-in function excludes the names beyond 0x10000. Can I do that with FF scripting? Thanks
Tagged:
0
Comments
-
You can print glyphs names with simple python script:n=fontforge.activeFont();
temp="";
for i in n:
temp+=i;
temp+=" ";
print temp;
but those glyphs must exist in the font (on image not red cross on font preview)In my example below only 2 glyphs exist in font
1 -
Thank for the quick reply. The script runs ok, but did not see the screen printout. Your printout shown only code numbers. Is this because you did not named them? Can I print them out to a file? Thanks0
-
No these are default glyph names in my FFWAY KYI said:.... Your printout shown only code numbers...
to see printout You need to run fontforge in terminalWAY KYI said:..but did not see the screen printout.
to print names to file You can use simple script:WAY KYI said:Can I print them out to a file?import os;
n=fontforge.activeFont();
temp="";
for i in n:
temp+=i;
temp+=" ";
file_name='glyph_names';
if (os.path.isfile(file_name)):
os.remove(file_name);
file=open(file_name,'a');
file.write(temp);
file.close();
1 -
Thanks you very much. I think my system is not set up to run python script. So, let me try with FF equivalent scripting to see it works. I will update you later. Thanks0
-
I got it working with FF scripting. Thanks a lot
. See the file here.But there are two things I need to fix. I want integer number in Hex number 0x10000 and also, I want to print each Code Number & Name in new line. I could not figure it out and any help would be very much appreciated. Thanks
0
Categories
- All Categories
- 46 Introductions
- 3.9K Typeface Design
- 485 Type Design Critiques
- 561 Type Design Software
- 1.1K Type Design Technique & Theory
- 654 Type Business
- 853 Font Technology
- 29 Punchcutting
- 519 Typography
- 119 Type Education
- 323 Type History
- 77 Type Resources
- 112 Lettering and Calligraphy
- 33 Lettering Critiques
- 79 Lettering Technique & Theory
- 550 Announcements
- 91 Events
- 114 Job Postings
- 170 Type Releases
- 174 Miscellaneous News
- 276 About TypeDrawers
- 54 TypeDrawers Announcements
- 120 Suggestions and Bug Reports
