With 2.042, it is possible to create a font using a single method, font, instead of having to choose the right method for built-in and TT fonts.
I like to suggest to carry this one step further. I would like to use a font name or filename everywhere currently a font object is required. For example, assuming $tc is a text content:
With 2.042, it is possible to create a font using a single method,
font
, instead of having to choose the right method for built-in and TT fonts.I like to suggest to carry this one step further. I would like to use a font name or filename everywhere currently a font object is required. For example, assuming
$tc
is a text content:A trivial cache suffices to reuse font objects.
In a later stadium, integration with fontconfig would allow state of the art font selection, e.g.
What do you think?