Sha256: 3cfa24c22fbca488111144153a126d5cdd605f3c53355259db78b23660b2d668

Contents?: true

Size: 285 Bytes

Versions: 4

Compression:

Stored size: 285 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

4 entries across 3 versions & 2 rubygems

Version Path
embulk-input-druginfo_interview_form-0.1.0 vendor/bundle/ruby/2.4.0/gems/ttfunk-1.5.1/lib/ttfunk/table/post/format40.rb
embulk-input-druginfo_interview_form-0.1.0 vendor/bundle/ruby/2.5.0/gems/ttfunk-1.5.1/lib/ttfunk/table/post/format40.rb
ttfunk-1.5.1 lib/ttfunk/table/post/format40.rb
ttfunk-1.5.0 lib/ttfunk/table/post/format40.rb