calculate_text_width_with_size Function

public function calculate_text_width_with_size(text, pixel_height) result(width)

Calculate text width using a specific font size Supports mathematical notation with superscripts and subscripts

Arguments

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

Return Value integer