Browse Source

Rescale Chinese characters to be more square

Adds a simple re-scaling script in case we need it again

Fixes https://gitlab.com/kicad/code/kicad/issues/1824
6.0.7
Seth Hillbrand 4 years ago
parent
commit
edc94f4d32
  1. 41952
      common/newstroke_font.cpp
  2. 649970
      helpers/tools_to_build_newstroke-font/CKJ_wide.lib
  3. 19
      helpers/tools_to_build_newstroke-font/scale.py

41952
common/newstroke_font.cpp
File diff suppressed because it is too large
View File

649970
helpers/tools_to_build_newstroke-font/CKJ_wide.lib
File diff suppressed because it is too large
View File

19
helpers/tools_to_build_newstroke-font/scale.py

@ -0,0 +1,19 @@
import os
i = 0
with open( 'CKJ_lib.bak' ) as f:
for line in f:
tok = line.split()
if len(tok) == 0:
print( '' )
continue
if tok[0] == 'P':
tok[3:-2:2] = [str( int( t ) * 1.5 ) for t in tok[3:-2:2]]
elif tok[0] == 'X' and int( tok[3] ) > 0:
tok[3] = '1450'
print( ' '.join( tok ) )
Loading…
Cancel
Save