File: format30.rb

package info (click to toggle)
ruby-ttfunk 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,472 kB
  • sloc: ruby: 7,954; makefile: 7
file content (25 lines) | stat: -rw-r--r-- 524 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module TTFunk
  class Table
    class Post
      # Version 3.0 specifies that no PostScript name information is provided
      # for the glyphs in this font file.
      module Format30
        # Get glyph name for character code.
        #
        # @param _code [Integer]
        # @return [String]
        def glyph_for(_code)
          '.notdef'
        end

        private

        def parse_format!
          # do nothing. Format 3 is easy-sauce.
        end
      end
    end
  end
end