Skip to content

Commit

Permalink
bdf: force ISO10646-1 encoding for Unicode support
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaku committed Jul 5, 2016
1 parent c71586b commit 7ac8586
Show file tree
Hide file tree
Showing 57 changed files with 32 additions and 28 deletions.
4 changes: 4 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion bdf/Tamzen10x20b.bdf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bdf/Tamzen10x20r.bdf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bdf/Tamzen5x9b.bdf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bdf/Tamzen5x9r.bdf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bdf/Tamzen6x12b.bdf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bdf/Tamzen6x12r.bdf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bdf/Tamzen7x13b.bdf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bdf/Tamzen7x13r.bdf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bdf/Tamzen7x14b.bdf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bdf/Tamzen7x14r.bdf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bdf/Tamzen8x15b.bdf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bdf/Tamzen8x15r.bdf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bdf/Tamzen8x16b.bdf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bdf/Tamzen8x16r.bdf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file modified pcf/Tamzen10x20b.pcf
Binary file not shown.
Binary file modified pcf/Tamzen10x20r.pcf
Binary file not shown.
Binary file modified pcf/Tamzen5x9b.pcf
Binary file not shown.
Binary file modified pcf/Tamzen5x9r.pcf
Binary file not shown.
Binary file modified pcf/Tamzen6x12b.pcf
Binary file not shown.
Binary file modified pcf/Tamzen6x12r.pcf
Binary file not shown.
Binary file modified pcf/Tamzen7x13b.pcf
Binary file not shown.
Binary file modified pcf/Tamzen7x13r.pcf
Binary file not shown.
Binary file modified pcf/Tamzen7x14b.pcf
Binary file not shown.
Binary file modified pcf/Tamzen7x14r.pcf
Binary file not shown.
Binary file modified pcf/Tamzen8x15b.pcf
Binary file not shown.
Binary file modified pcf/Tamzen8x15r.pcf
Binary file not shown.
Binary file modified pcf/Tamzen8x16b.pcf
Binary file not shown.
Binary file modified pcf/Tamzen8x16r.pcf
Binary file not shown.
Binary file modified pcf/TamzenForPowerline10x20b.pcf
Binary file not shown.
Binary file modified pcf/TamzenForPowerline10x20r.pcf
Binary file not shown.
Binary file modified pcf/TamzenForPowerline5x9b.pcf
Binary file not shown.
Binary file modified pcf/TamzenForPowerline5x9r.pcf
Binary file not shown.
Binary file modified pcf/TamzenForPowerline6x12b.pcf
Binary file not shown.
Binary file modified pcf/TamzenForPowerline6x12r.pcf
Binary file not shown.
Binary file modified pcf/TamzenForPowerline7x13b.pcf
Binary file not shown.
Binary file modified pcf/TamzenForPowerline7x13r.pcf
Binary file not shown.
Binary file modified pcf/TamzenForPowerline7x14b.pcf
Binary file not shown.
Binary file modified pcf/TamzenForPowerline7x14r.pcf
Binary file not shown.
Binary file modified pcf/TamzenForPowerline8x15b.pcf
Binary file not shown.
Binary file modified pcf/TamzenForPowerline8x15r.pcf
Binary file not shown.
Binary file modified pcf/TamzenForPowerline8x16b.pcf
Binary file not shown.
Binary file modified pcf/TamzenForPowerline8x16r.pcf
Binary file not shown.
2 changes: 1 addition & 1 deletion pt3/Tamzen10x20b.afm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down
2 changes: 1 addition & 1 deletion pt3/Tamzen10x20r.afm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down
2 changes: 1 addition & 1 deletion pt3/Tamzen5x9b.afm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down
2 changes: 1 addition & 1 deletion pt3/Tamzen5x9r.afm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down
2 changes: 1 addition & 1 deletion pt3/Tamzen6x12b.afm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down
2 changes: 1 addition & 1 deletion pt3/Tamzen6x12r.afm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down
2 changes: 1 addition & 1 deletion pt3/Tamzen7x13b.afm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down
2 changes: 1 addition & 1 deletion pt3/Tamzen7x13r.afm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down
2 changes: 1 addition & 1 deletion pt3/Tamzen7x14b.afm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down
2 changes: 1 addition & 1 deletion pt3/Tamzen7x14r.afm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down
2 changes: 1 addition & 1 deletion pt3/Tamzen8x15b.afm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down
2 changes: 1 addition & 1 deletion pt3/Tamzen8x15r.afm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down
2 changes: 1 addition & 1 deletion pt3/Tamzen8x16b.afm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down
2 changes: 1 addition & 1 deletion pt3/Tamzen8x16r.afm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down

0 comments on commit 7ac8586

Please sign in to comment.