|
-
Nov 2nd, 2024, 01:42 PM
#33
Thread Starter
Fanatic Member
Re: RC6 cCairoSurface: Implementing a "biggest font size available" logic
I have augmented the code by adding the single line option back in.
There is one situation where the text renders offscreen (left: < 0), and "MaxDxNeeded" is 0:
Dim lRet&
lRet = CC.DrawText(uLeft, uLeft, lEffectiveAvailableWidth, lEffectiveAvailableHeight, uText, uSingleline, uHAlign, 0, lVAlign, dtNormal, 1, , dblWidthNeeded)
Would anybody be willing to take a look where I made a math error?
I don't manage to resolve it. I would appreciate any help very much!
Thank you.
I have hardcoded the width and height in the sample project to show you the problem.
Last edited by tmighty2; Nov 2nd, 2024 at 04:51 PM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|