fortplot_pdf_text_metrics Module

PDF text measurement helpers



Functions

public function estimate_pdf_text_width(text, font_size) result(width)

Estimate rendered width (in PDF points) of a text string

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: text
real(kind=wp), intent(in), optional :: font_size

Return Value real(kind=wp)

public recursive function measure_mathtext_elements_width(elements, fs) result(w)

Arguments

Type IntentOptional Attributes Name
type(mathtext_element_t), intent(in) :: elements(:)
real(kind=wp), intent(in) :: fs

Return Value real(kind=wp)

public recursive function measure_mathtext_element_width(element, base_font_size) result(w)

Arguments

Type IntentOptional Attributes Name
type(mathtext_element_t), intent(in) :: element
real(kind=wp), intent(in) :: base_font_size

Return Value real(kind=wp)

public function helv_width_units(codepoint) result(wu)

Return Helvetica advance width in 1000-unit em for given codepoint

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: codepoint

Return Value integer