Replies: 1 comment
|
Figured it out: Lines 1552 to 1558 in 49b8e5e Used internally if no font was set. I feel kind of bad mimic this "internal" behavior on my side to preserve the optionality. Why is getFont actually private? Same applies to fontSize. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Page's
drawTexthas optionsfont&size. If not specified, defaults are used.Problem: when implementing layouting and measuring, I don't see any documented way of retrieving the defaults in case I want to preserve the optionality when writing the text. So I need to wrap the API with non-optional font & size, so that measurment is possible.
How does PDF-Lib "pick" the defauls. How can I access them?
All reactions