E
EgregioSignore
Hi all,
I want to write a function that gets the following parameters:
a string "s"
a font "f"
and returns the EXACT width and height of the font.
I tried first with MeasureString but it adds me extra space;
then I tried with MeasureCharacterRanges but I didn't manage
to get rid of an extra space.
I need to have a pair of values that could enable me to draw,
let's say, a bounding box that TOUCHES the string on every border,
no matter how the glyphs are shaped (f.ex. a string with only
a period, ".", should return a very small b.box instead of taking
account of the extra space OVER the dot).
Thanks for your help!
I want to write a function that gets the following parameters:
a string "s"
a font "f"
and returns the EXACT width and height of the font.
I tried first with MeasureString but it adds me extra space;
then I tried with MeasureCharacterRanges but I didn't manage
to get rid of an extra space.
I need to have a pair of values that could enable me to draw,
let's say, a bounding box that TOUCHES the string on every border,
no matter how the glyphs are shaped (f.ex. a string with only
a period, ".", should return a very small b.box instead of taking
account of the extra space OVER the dot).
Thanks for your help!