tt_get_glyph_shape Subroutine

public subroutine tt_get_glyph_shape(data, loca, glyf, index_to_loc_format, num_glyphs, glyph_index, vertices, nvertices)

Extract glyph outline as an array of move/line/curve vertices. Handles simple glyphs (numberOfContours > 0) and composite glyphs (numberOfContours < 0) with recursive component resolution.

Arguments

Type IntentOptional Attributes Name
integer(kind=int8), intent(in) :: data(:)
integer, intent(in) :: loca
integer, intent(in) :: glyf
integer, intent(in) :: index_to_loc_format
integer, intent(in) :: num_glyphs
integer, intent(in) :: glyph_index
type(tt_vertex_t), intent(out), allocatable :: vertices(:)
integer, intent(out) :: nvertices