tt_get_font_offset_for_index Function

public pure function tt_get_font_offset_for_index(data, index) result(offset)

Get font byte offset for a given index in a TTC collection. For a standalone font, index 0 returns 0. Returns -1 if the index is out of range or data is invalid.

Arguments

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

Return Value integer