Pure Fortran TrueType font parser and rasterizer. Based on stb_truetype.h v1.26 by Sean Barrett. Original C implementation rewritten in Fortran for the fortplot project.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer(kind=int8), | public, | allocatable | :: | data(:) | |||
| integer, | public | :: | fontstart | = | 0 | ||
| integer, | public | :: | num_glyphs | = | 0 | ||
| integer, | public | :: | loca | = | 0 | ||
| integer, | public | :: | head | = | 0 | ||
| integer, | public | :: | glyf | = | 0 | ||
| integer, | public | :: | hhea | = | 0 | ||
| integer, | public | :: | hmtx | = | 0 | ||
| integer, | public | :: | kern | = | 0 | ||
| integer, | public | :: | gpos | = | 0 | ||
| integer, | public | :: | index_map | = | 0 | ||
| integer, | public | :: | index_to_loc_format | = | 0 | ||
| logical, | public | :: | initialized | = | .false. |
| procedure, public :: init => font_init | |
| procedure, public :: cleanup => font_cleanup | |
| procedure, public :: scale_for_pixel_height => font_scale | |
| procedure, public :: get_vmetrics => font_vmetrics | |
| procedure, public :: get_hmetrics => font_hmetrics | |
| procedure, public :: find_glyph_index => font_find_glyph | |
| procedure, public :: get_bitmap_box => font_bitmap_box | |
| procedure, public :: get_codepoint_bitmap => font_get_bitmap | |
| procedure, public :: make_codepoint_bitmap => font_make_bitmap |