|
|
Originally Posted by: ESchunk  Thanks Paul. Can you point me something to learn more about the textObject.Matrix properties. (Not sure what a,b,c...f mean). https://forum.patagames....Matrix-and-How-to-Use-ItOriginally Posted by: ESchunk  My approach is to create a new PdfTextObject using an existing font and text object. You may use original font size and matrix. Or just call PdfTextObject.Clone();
|
|
|
Thanks Paul. Can you point me something to learn more about the textObject.Matrix properties. (Not sure what a,b,c...f mean).
I'm trying to get the height of a character given a particular font and font size. My approach is to create a new PdfTextObject using an existing font and text object. For example,
PdfTextObject.Create("A", 1, 1, textObject.Font, textObject.FontSize);
The problem is the font size of the existing object. Should I be using the "D" property of the matrix to get the font size?
Thanks,
Ted
|
|
|
In fact, in the provided document, the font size is indeed set to 1. And the size of the text that you see when rendering, appears as a result of applying the transformation matrix.. Examine the textObject.Matrix property. You will find there a scaling factor equal to exactly 7.56.
|
|
|
I have a pdf file with a custom font. The font size when I look in Acrobat is 7.56. The font size returned by PdfTextObject (or Pdfium.FPDFTextObj_GetFontSize) is 1. Is there a way to get the size of a font when the text was created with a custom font? Attached is a sample PDF with the issue. Thanks, Ted test of font.pdf (14kb) downloaded 27 time(s).
|
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close