class TTFunk::Table::Glyf::Simple
Simple TrueType glyph
def compound?
-
(false)
-
def compound? false end
def end_point_of_last_contour
-
(Integer)
-
def end_point_of_last_contour end_points_of_contours.last + 1 end
def initialize(id, raw)
-
raw
(String
) -- -
id
(Integer
) -- glyph ID.
def initialize(id, raw) @id = id @raw = raw io = StringIO.new(raw) @number_of_contours, @x_min, @y_min, @x_max, @y_max = io.read(10).unpack('n*').map { |i| BinUtils.twos_comp_to_int(i, bit_width: 16) } @end_points_of_contours = io.read(number_of_contours * 2).unpack('n*') @instruction_length = io.read(2).unpack1('n') @instructions = io.read(instruction_length).unpack('C*') end
def recode(_mapping)
-
(String)
-
Parameters:
-
_mapping
() -- Unused, here for API compatibility.
def recode(_mapping) raw end