Class: Fontisan::Type1::Encodings::ISOLatin1
- Defined in:
- lib/fontisan/type1/encodings.rb
Overview
ISO-8859-1 (Latin-1) Encoding
Encoding for Western European languages, based on ISO-8859-1 standard.
Constant Summary collapse
- CODE_TO_GLYPH =
code_to_glyph.freeze
- GLYPH_TO_CODE =
glyph_to_code.freeze
Class Method Summary collapse
-
.all_glyph_names ⇒ Array<String>
Get all glyph names in encoding.
-
.codepoint_for_glyph(name) ⇒ Integer?
Get character code for glyph name.
-
.encoding_name ⇒ String
Get encoding name.
-
.glyph_name_for_code(codepoint) ⇒ String?
Get glyph name for character code.
Methods inherited from Encoding
Class Method Details
.all_glyph_names ⇒ Array<String>
Get all glyph names in encoding
647 648 649 |
# File 'lib/fontisan/type1/encodings.rb', line 647 def self.all_glyph_names ISO_8859_1.reject { |n| n == ".notdef" } end |
.codepoint_for_glyph(name) ⇒ Integer?
Get character code for glyph name
633 634 635 |
# File 'lib/fontisan/type1/encodings.rb', line 633 def self.codepoint_for_glyph(name) GLYPH_TO_CODE[name] end |
.encoding_name ⇒ String
Get encoding name
640 641 642 |
# File 'lib/fontisan/type1/encodings.rb', line 640 def self.encoding_name "ISOLatin1" end |
.glyph_name_for_code(codepoint) ⇒ String?
Get glyph name for character code
625 626 627 |
# File 'lib/fontisan/type1/encodings.rb', line 625 def self.glyph_name_for_code(codepoint) CODE_TO_GLYPH[codepoint] end |