fortplot_pdf_text_escape Module

PDF text escaping and symbol mapping utilities



Variables

Type Visibility Attributes Name Initial
real(kind=wp), public, parameter :: SCRIPT_SCALE = 0.7_wp
real(kind=wp), public, parameter :: SUPERSCRIPT_RISE = 0.35_wp
real(kind=wp), public, parameter :: SUBSCRIPT_DROP = 0.15_wp

Subroutines

public subroutine escape_pdf_string(input, output, output_len)

Escape special characters in PDF strings

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: input
character(len=*), intent(out) :: output
integer, intent(out) :: output_len

public subroutine unicode_to_symbol_char(unicode_codepoint, symbol_char)

Convert Unicode codepoint to Symbol font character

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: unicode_codepoint
character(len=*), intent(out) :: symbol_char

public subroutine unicode_codepoint_to_pdf_escape(codepoint, escape_seq)

Convert Unicode codepoint to PDF escape sequence

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: codepoint
character(len=*), intent(out) :: escape_seq

public subroutine lookup_script_fallback(codepoint, base, rise)

Unicode superscript/subscript characters absent from WinAnsi and Symbol: the base character and its rise (+1 super, -1 sub, 0 none).

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: codepoint
character(len=1), intent(out) :: base
integer, intent(out) :: rise