Results 1 to 40 of 42

Thread: RC6 cCairoSurface: Implementing a "biggest font size available" logic

Threaded View

  1. #33

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2017
    Posts
    761

    Question 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.
    Attached Files Attached Files
    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
  •  



Click Here to Expand Forum to Full Width