PDFsharp & MigraDoc Forum
https://forum.pdfsharp.net/

can't measure the size of a space character
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2211
Page 1 of 1

Author:  tawulf [ Mon Nov 05, 2012 3:14 pm ]
Post subject:  can't measure the size of a space character

all my attempts to measure the width of a (single) space (either regular or the alt255 one) result only in 0;
I use the TextMeasurement class and all other measurements are OK, but to pad properly with spaces I'd like to get its width; I use 'i' for now, but this is neither right nor font-stable..

looks like a bug to me..

Author:  Thomas Hoevel [ Mon Nov 05, 2012 3:31 pm ]
Post subject:  Re: can't measure the size of a space character

Here's a code snippet that calculates the width of a space:
viewtopic.php?p=5801#p5801

Looks like a feature, not a bug.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/