User Tools

Site Tools


fontforge

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
fontforge [2009/11/25 07:36] suapapafontforge [2013/08/03 05:04] (current) – external edit 127.0.0.1
Line 3: Line 3:
     *OS/2->Panose->Proportion     *OS/2->Panose->Proportion
       *Monosapce->Even Width       *Monosapce->Even Width
 +<code python> 
 +>>> import fontforge 
 +>>> font = fontforge.open('NanumGothic_Coding_Bold.ttf'
 +>>> font.os2_panose 
 +(2, 13, 0, 9, 0, 0, 0, 0, 0, 0) 
 +>>> font.os2_panose = (2, 13, 0, 4, 0, 0, 0, 0, 0, 0) 
 +>>> font.generate('output.ttf'
 +</code> 
 +<code bash> 
 +$ sudo cp output.ttf /usr/share/fonts/truetype/nanum-coding/NanumGothic_Coding_Bold.ttf  
 +$ fc-cache -r 
 +</code>
  
  
Line 44: Line 55:
 73119 73119
 </code> </code>
-references+====== references ======
   *[[http://tinkerhouse.net/log/python-fontforge-is-definitely-a-godsend/|Python-fontforge is definitely a godsend]]   *[[http://tinkerhouse.net/log/python-fontforge-is-definitely-a-godsend/|Python-fontforge is definitely a godsend]]
 +  *[[http://fontforge.sourceforge.net/python.html|Writing python scripts to change fonts in FontForge]]
fontforge.1259134599.txt.gz · Last modified: 2013/08/03 05:04 (external edit)