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

How to count text width?

$
0
0
Hi,

I've a problem with calculation text width. I tried used this formula :
text_width = sum(Widths[text[i]]) * font_size / 1000

Sometimes I get correct width but sometimes don't. I used characters widths from dictionary Font - /Widths

Has I bad formula or the problem is somewhere else?

thx.

Viewing all articles
Browse latest Browse all 46145

Trending Articles



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