Sha256: 1e60579f3d0db106993ab1d606c7b97269a38c169aea6aee176b2faf869b30f0

Contents?: true

Size: 291 Bytes

Versions: 36

Compression:

Stored size: 291 Bytes

Contents

module TTFunk
  class Table
    class Post
      module Format40
        def glyph_for(code)
          @map[code] || 0xFFFF
        end

        private

          def parse_format!
            @map = read(file.maximum_profile.num_glyphs * 2, "N*")
          end
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 10 rubygems

Version Path
ttfunk-1.4.0 lib/ttfunk/table/post/format40.rb
ttfunk-1.3.0 lib/ttfunk/table/post/format40.rb
ttfunk-1.2.2 lib/ttfunk/table/post/format40.rb
ttfunk-1.2.1 lib/ttfunk/table/post/format40.rb
ttfunk-1.2.0 lib/ttfunk/table/post/format40.rb
ttfunk-1.1.1 lib/ttfunk/table/post/format40.rb
ttfunk-1.1.0 lib/ttfunk/table/post/format40.rb
ttfunk-1.0.3 lib/ttfunk/table/post/format40.rb
ttfunk-1.0.2 lib/ttfunk/table/post/format40.rb
ttfunk-1.0.1 lib/ttfunk/table/post/format40.rb
davebenvenuti-prawn-0.11.1.pre vendor/ttfunk/lib/ttfunk/table/post/format40.rb
piglop-prawn-0.10.2.3 vendor/ttfunk/lib/ttfunk/table/post/format40.rb
piglop-prawn-0.10.2.2 vendor/ttfunk/lib/ttfunk/table/post/format40.rb
piglop-prawn-0.10.2.1 vendor/ttfunk/lib/ttfunk/table/post/format40.rb
glyph_imager-0.1.1 vendor/ttfunk/lib/ttfunk/table/post/format40.rb
prawn-0.11.1.pre vendor/ttfunk/lib/ttfunk/table/post/format40.rb
goodwill-prawn-edge-0.10.0 vendor/ttfunk/lib/ttfunk/table/post/format40.rb
alphasights-prawn-0.10.4 vendor/ttfunk/lib/ttfunk/table/post/format40.rb
alphasights-prawn-0.10.3 vendor/ttfunk/lib/ttfunk/table/post/format40.rb
alphasights-prawn-0.10.2 vendor/ttfunk/lib/ttfunk/table/post/format40.rb