fortplot_tt_cmap Module

TrueType cmap (character map) table parser. Maps Unicode codepoints to glyph indices, supporting formats 0, 4, 6, 12, and 13.



Functions

public pure function tt_find_glyph_index(data, index_map, unicode_codepoint) result(glyph_index)

Look up the glyph index for a Unicode codepoint in a cmap subtable. Returns 0 when the codepoint is not covered by the subtable.

Arguments

Type IntentOptional Attributes Name
integer(kind=int8), intent(in) :: data(:)
integer, intent(in) :: index_map
integer, intent(in) :: unicode_codepoint

Return Value integer