Quantcast
Channel: Adobe Community : Popular Discussions - PDF Language and Specifications
Viewing all articles
Browse latest Browse all 46145

Inverse y axis and text

$
0
0

When we draw in windows the origin is at the upper left point.

I tranform it to the lower left with matrix M=[sc, 0, 0, -sc, 0, y] where sc is some scaling and y the height of the window.

The result matrix is CTM x M  and this is fine when drawing geometric shapes. 

 

The problem is with the text that is displayed mirrored. Windows draws text top to bottom.

With DrawString("Hello", 10 , 10) the upper left of 'H' is at (10, 10). (Doesn't start from glyph origin)

If I know glyph metrics what is the matrix multiplication formula to transorm PDF to windows device for text?

 

Thank you.


Viewing all articles
Browse latest Browse all 46145

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>