Not sure whether this is a canvas question or not, but:
I have a monospace font. I'd like to use it to (optionally) replace LiberationMono-Bold.ttf ( the canvas default). I can load the other font by defining a font mapper - but the sizes doesn't match, the new font is too large, the display layout is screwed.
Now, for monospace fonts this ought to be a piece of cake with at most two numbers (scale of the glyph bounding box in x and y). ttf fundamentally is a vector description, so it ought to be as easy as that.
But I don't want to apply this scaling for each text element.
So I need some advice - can canvas do it at font loading time? Or how would I go about changing it with an offline tool mapping the bounding boxes to a different ttf file? Does anyone have experience with font manipulation? I've never worked with ttf, I just know how to create fonts for LaTeX, which is conceptually similar, but has a completely different toolchain.