xulihang Well-Known Member Licensed User Longtime User Oct 12, 2025 #1 Using the example here: https://www.b4x.com/android/forum/t...-image-with-bctextengine.168974/#post-1035768 We can see the text (我爱我的祖国!) is being cut. I think this means inaccurate measuring of text?
Using the example here: https://www.b4x.com/android/forum/t...-image-with-bctextengine.168974/#post-1035768 We can see the text (我爱我的祖国!) is being cut. I think this means inaccurate measuring of text?
xulihang Well-Known Member Licensed User Longtime User Oct 12, 2025 #3 I increased the font size to 50. This looks good. But it does not look good if the size is 15. See the bottom part of the text. Upvote 0
I increased the font size to 50. This looks good. But it does not look good if the size is 15. See the bottom part of the text.
Erel B4X founder Staff member Licensed User Longtime User Oct 12, 2025 #4 B4X: BBCodeView1.Text = $"[TextSize=15]我爱我的祖国! 我爱我的祖国! 我爱我的祖国![/TextSize]"$ This is what I get: Upvote 0
xulihang Well-Known Member Licensed User Longtime User Oct 12, 2025 #5 Here is another example. It will be easier to notice the text being cut if I zoom in the text image. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 15, 2025 #6 This is what I get: It might be a rounding error related to the monitor DPI setting. What is the output of Log(TextEngine.mScale)? Try to increase TextEngine.SpaceBetweenLines or MinGapBetweenLines. Upvote 0
This is what I get: It might be a rounding error related to the monitor DPI setting. What is the output of Log(TextEngine.mScale)? Try to increase TextEngine.SpaceBetweenLines or MinGapBetweenLines.
xulihang Well-Known Member Licensed User Longtime User Oct 16, 2025 #7 The scale is 100%. If it only has one line, then SpaceBetweenLines will not help with it. Upvote 0