fortplot_tt_rasterizer Module

TrueType scanline rasterizer (v2 analytical antialiasing). Converts tessellated glyph outlines into 8-bit grayscale bitmaps. Fortran port of the STB v2 rasterizer from stb_truetype.h.



Subroutines

public subroutine tt_rasterize(result_pixels, result_w, result_h, result_stride, pts, wcount, windings, scale_x, scale_y, shift_x, shift_y, off_x, off_y, invert)

Rasterize tessellated glyph outlines into an 8-bit bitmap.

Arguments

Type IntentOptional Attributes Name
integer(kind=int8), intent(inout) :: result_pixels(:)
integer, intent(in) :: result_w
integer, intent(in) :: result_h
integer, intent(in) :: result_stride
type(tt_point_t), intent(in) :: pts(:)
integer, intent(in) :: wcount(:)
integer, intent(in) :: windings
real(kind=dp), intent(in) :: scale_x
real(kind=dp), intent(in) :: scale_y
real(kind=dp), intent(in) :: shift_x
real(kind=dp), intent(in) :: shift_y
integer, intent(in) :: off_x
integer, intent(in) :: off_y
logical, intent(in) :: invert