bdf: force ISO10646-1 encoding for Unicode support

This commit is contained in:
Suraj N. Kurapati 2016-07-04 14:08:49 -07:00
parent c71586b7da
commit 7ac8586f6e
57 changed files with 32 additions and 28 deletions

View File

@ -145,6 +145,10 @@ file '.tamzen' => ['bdf', __FILE__] do
end or warn "#{target_file}: glyph #{glyph.inspect} (#{codepoint}) not found"
end or warn "#{target_file}: not all glyphs were backported; see errors above"
# ensure that BDF fonts play well with Unicode
target_font.props['CHARSET_REGISTRY'] = '"ISO10646"'
target_font.props['CHARSET_ENCODING'] = '"1"'
# save backported font under a different name
rename = ['Tamsyn', 'Tamzen']
dst = File.join('bdf', target_file.sub(*rename))

View File

@ -16,7 +16,7 @@ RESOLUTION_X 100
RESOLUTION_Y 100
SPACING "C"
AVERAGE_WIDTH 100
CHARSET_REGISTRY "ISO8859"
CHARSET_REGISTRY "ISO10646"
CHARSET_ENCODING "1"
COPYRIGHT "(c) 2015 Scott Fial"
CAP_HEIGHT 11

View File

@ -16,7 +16,7 @@ RESOLUTION_X 100
RESOLUTION_Y 100
SPACING "C"
AVERAGE_WIDTH 100
CHARSET_REGISTRY "ISO8859"
CHARSET_REGISTRY "ISO10646"
CHARSET_ENCODING "1"
COPYRIGHT "(c) 2015 Scott Fial"
CAP_HEIGHT 11

View File

@ -16,7 +16,7 @@ RESOLUTION_X 100
RESOLUTION_Y 100
SPACING "C"
AVERAGE_WIDTH 50
CHARSET_REGISTRY "ISO8859"
CHARSET_REGISTRY "ISO10646"
CHARSET_ENCODING "1"
COPYRIGHT "(c) 2015 Scott Fial"
CAP_HEIGHT 5

View File

@ -16,7 +16,7 @@ RESOLUTION_X 100
RESOLUTION_Y 100
SPACING "C"
AVERAGE_WIDTH 50
CHARSET_REGISTRY "ISO8859"
CHARSET_REGISTRY "ISO10646"
CHARSET_ENCODING "1"
COPYRIGHT "(c) 2015 Scott Fial"
CAP_HEIGHT 5

View File

@ -16,7 +16,7 @@ RESOLUTION_X 100
RESOLUTION_Y 100
SPACING "C"
AVERAGE_WIDTH 60
CHARSET_REGISTRY "ISO8859"
CHARSET_REGISTRY "ISO10646"
CHARSET_ENCODING "1"
COPYRIGHT "(c) 2015 Scott Fial"
CAP_HEIGHT 7

View File

@ -16,7 +16,7 @@ RESOLUTION_X 100
RESOLUTION_Y 100
SPACING "C"
AVERAGE_WIDTH 60
CHARSET_REGISTRY "ISO8859"
CHARSET_REGISTRY "ISO10646"
CHARSET_ENCODING "1"
COPYRIGHT "(c) 2015 Scott Fial"
CAP_HEIGHT 7

View File

@ -16,7 +16,7 @@ RESOLUTION_X 100
RESOLUTION_Y 100
SPACING "C"
AVERAGE_WIDTH 70
CHARSET_REGISTRY "ISO8859"
CHARSET_REGISTRY "ISO10646"
CHARSET_ENCODING "1"
COPYRIGHT "(c) 2015 Scott Fial"
CAP_HEIGHT 7

View File

@ -16,7 +16,7 @@ RESOLUTION_X 100
RESOLUTION_Y 100
SPACING "C"
AVERAGE_WIDTH 70
CHARSET_REGISTRY "ISO8859"
CHARSET_REGISTRY "ISO10646"
CHARSET_ENCODING "1"
COPYRIGHT "(c) 2015 Scott Fial"
CAP_HEIGHT 7

View File

@ -16,7 +16,7 @@ RESOLUTION_X 100
RESOLUTION_Y 100
SPACING "C"
AVERAGE_WIDTH 70
CHARSET_REGISTRY "ISO8859"
CHARSET_REGISTRY "ISO10646"
CHARSET_ENCODING "1"
COPYRIGHT "(c) 2015 Scott Fial"
CAP_HEIGHT 8

View File

@ -16,7 +16,7 @@ RESOLUTION_X 100
RESOLUTION_Y 100
SPACING "C"
AVERAGE_WIDTH 70
CHARSET_REGISTRY "ISO8859"
CHARSET_REGISTRY "ISO10646"
CHARSET_ENCODING "1"
COPYRIGHT "(c) 2015 Scott Fial"
CAP_HEIGHT 8

View File

@ -16,7 +16,7 @@ RESOLUTION_X 100
RESOLUTION_Y 100
SPACING "C"
AVERAGE_WIDTH 80
CHARSET_REGISTRY "ISO8859"
CHARSET_REGISTRY "ISO10646"
CHARSET_ENCODING "1"
COPYRIGHT "(c) 2015 Scott Fial"
CAP_HEIGHT 8

View File

@ -16,7 +16,7 @@ RESOLUTION_X 100
RESOLUTION_Y 100
SPACING "C"
AVERAGE_WIDTH 80
CHARSET_REGISTRY "ISO8859"
CHARSET_REGISTRY "ISO10646"
CHARSET_ENCODING "1"
COPYRIGHT "(c) 2015 Scott Fial"
CAP_HEIGHT 8

View File

@ -16,7 +16,7 @@ RESOLUTION_X 100
RESOLUTION_Y 100
SPACING "C"
AVERAGE_WIDTH 80
CHARSET_REGISTRY "ISO8859"
CHARSET_REGISTRY "ISO10646"
CHARSET_ENCODING "1"
COPYRIGHT "(c) 2015 Scott Fial"
CAP_HEIGHT 9

View File

@ -16,7 +16,7 @@ RESOLUTION_X 100
RESOLUTION_Y 100
SPACING "C"
AVERAGE_WIDTH 80
CHARSET_REGISTRY "ISO8859"
CHARSET_REGISTRY "ISO10646"
CHARSET_ENCODING "1"
COPYRIGHT "(c) 2015 Scott Fial"
CAP_HEIGHT 9

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -11,7 +11,7 @@ IsFixedPitch false
UnderlinePosition -100
UnderlineThickness 50
Version 001.000
EncodingScheme ISOLatin1Encoding
EncodingScheme ISO10646-1
FontBBox 0 0 0 0
StartCharMetrics 190
C 0 ; WX 392 ; N U+0000 ; B 0 0 0 0 ;

View File

@ -11,7 +11,7 @@ IsFixedPitch false
UnderlinePosition -100
UnderlineThickness 50
Version 001.000
EncodingScheme ISOLatin1Encoding
EncodingScheme ISO10646-1
FontBBox 0 0 0 0
StartCharMetrics 190
C 0 ; WX 392 ; N U+0000 ; B 0 0 0 0 ;

View File

@ -11,7 +11,7 @@ IsFixedPitch true
UnderlinePosition -100
UnderlineThickness 50
Version 001.000
EncodingScheme ISOLatin1Encoding
EncodingScheme ISO10646-1
FontBBox 0 0 0 0
StartCharMetrics 189
C 2 ; WX 392 ; N U+2592 ; B 0 0 0 0 ;

View File

@ -11,7 +11,7 @@ IsFixedPitch true
UnderlinePosition -100
UnderlineThickness 50
Version 001.000
EncodingScheme ISOLatin1Encoding
EncodingScheme ISO10646-1
FontBBox 0 0 0 0
StartCharMetrics 189
C 2 ; WX 392 ; N U+2592 ; B 0 0 0 0 ;

View File

@ -11,7 +11,7 @@ IsFixedPitch true
UnderlinePosition -100
UnderlineThickness 50
Version 001.000
EncodingScheme ISOLatin1Encoding
EncodingScheme ISO10646-1
FontBBox 0 0 0 0
StartCharMetrics 190
C 0 ; WX 392 ; N U+0000 ; B 0 0 0 0 ;

View File

@ -11,7 +11,7 @@ IsFixedPitch true
UnderlinePosition -100
UnderlineThickness 50
Version 001.000
EncodingScheme ISOLatin1Encoding
EncodingScheme ISO10646-1
FontBBox 0 0 0 0
StartCharMetrics 190
C 0 ; WX 392 ; N U+0000 ; B 0 0 0 0 ;

View File

@ -11,7 +11,7 @@ IsFixedPitch true
UnderlinePosition -100
UnderlineThickness 50
Version 001.000
EncodingScheme ISOLatin1Encoding
EncodingScheme ISO10646-1
FontBBox 0 0 0 0
StartCharMetrics 190
C 0 ; WX 392 ; N U+0000 ; B 0 0 0 0 ;

View File

@ -11,7 +11,7 @@ IsFixedPitch true
UnderlinePosition -100
UnderlineThickness 50
Version 001.000
EncodingScheme ISOLatin1Encoding
EncodingScheme ISO10646-1
FontBBox 0 0 0 0
StartCharMetrics 190
C 0 ; WX 392 ; N U+0000 ; B 0 0 0 0 ;

View File

@ -11,7 +11,7 @@ IsFixedPitch true
UnderlinePosition -100
UnderlineThickness 50
Version 001.000
EncodingScheme ISOLatin1Encoding
EncodingScheme ISO10646-1
FontBBox 0 0 0 0
StartCharMetrics 190
C 0 ; WX 392 ; N U+0000 ; B 0 0 0 0 ;

View File

@ -11,7 +11,7 @@ IsFixedPitch true
UnderlinePosition -100
UnderlineThickness 50
Version 001.000
EncodingScheme ISOLatin1Encoding
EncodingScheme ISO10646-1
FontBBox 0 0 0 0
StartCharMetrics 189
C 0 ; WX 392 ; N U+0000 ; B 0 0 0 0 ;

View File

@ -11,7 +11,7 @@ IsFixedPitch true
UnderlinePosition -100
UnderlineThickness 50
Version 001.000
EncodingScheme ISOLatin1Encoding
EncodingScheme ISO10646-1
FontBBox 0 0 0 0
StartCharMetrics 190
C 0 ; WX 392 ; N U+0000 ; B 0 0 0 0 ;

View File

@ -11,7 +11,7 @@ IsFixedPitch true
UnderlinePosition -100
UnderlineThickness 50
Version 001.000
EncodingScheme ISOLatin1Encoding
EncodingScheme ISO10646-1
FontBBox 0 0 0 0
StartCharMetrics 189
C 0 ; WX 392 ; N U+0000 ; B 0 0 0 0 ;

View File

@ -11,7 +11,7 @@ IsFixedPitch true
UnderlinePosition -100
UnderlineThickness 50
Version 001.000
EncodingScheme ISOLatin1Encoding
EncodingScheme ISO10646-1
FontBBox 0 0 0 0
StartCharMetrics 190
C 0 ; WX 392 ; N U+0000 ; B 0 0 0 0 ;

View File

@ -11,7 +11,7 @@ IsFixedPitch true
UnderlinePosition -100
UnderlineThickness 50
Version 001.000
EncodingScheme ISOLatin1Encoding
EncodingScheme ISO10646-1
FontBBox 0 0 0 0
StartCharMetrics 189
C 0 ; WX 392 ; N U+0000 ; B 0 0 0 0 ;