![]() We have also use the bboxes to add backgrounds shapes. We mainly export this information and use it in combination with other softwares, but other use cases could include text highlighting, strikethrough, underlining, and alignment with other text layers and shapes. ![]() "Now that you have your line height, what can you do with it?" It is somewhat the drawing baseline location rather than the text baseline location. It also includes baseline shift if I remeber correctly and things like bold and italic can make it return different values. We also exclude text animators, we compute their transformations separately.īaselineLocs is also someehat not very usable in some cases, for ex., when using RTL or the bbox is smaller than the text, it all becomes undefined or even when using diffferent justifications. It doesn't always work though, and it gets, really, really slow and complicated. we also turn off baseline shifts and other features when possible (not all features are available in both engines). We do, we basically go though each character in the line, and try to get the style of it using expressions. "How do you compute the line height of the second line? Do consider baseline shift such as superscript or subscript? Different fonts on the same line? Different point sizes on the same line?" Yes, that's exactly how we compute the line height. ![]() "So you are using the distance from the top of the Box to compute your line height of the first line?" ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |