Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 6 of 6

Thread: Curved text on RA8875 display

  1. #1
    Senior Member
    Join Date
    May 2017
    Location
    Netherlands
    Posts
    121

    Curved text on RA8875 display

    Hi all,

    For my newest power meter I like to print curved text on the display, so I like print the text in a curved position on my RA8875 display. I can change a liberation_mono.ttf say the character F in every angle adjusted with fontforge, to get the full word FORWARD curved is a lot of work.

    Is there a easier way to do this?

    Every suggestion is very welcome!

    Click image for larger version. 

Name:	curved text.png 
Views:	5 
Size:	417.8 KB 
ID:	21331

    Best regards,
    Johan

  2. #2
    Senior Member
    Join Date
    May 2017
    Location
    Netherlands
    Posts
    121
    This is what I mean for curved text.Click image for larger version. 

Name:	curved_text.png 
Views:	10 
Size:	464.7 KB 
ID:	21350

  3. #3
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    7,473
    Looks like fun.

    Not sure How I would try to do it. If these were the only thing to display like this, I might be tempted to have a bitmap with it that I just put up on display. But that is probably cheating.

    When you are wanting to curve the text, are you also trying to curve each character? That is with the F does the angle of the logically vertical line at same angle as the farthest away dots of the horizontal lines?

  4. #4
    Senior Member
    Join Date
    May 2017
    Location
    Netherlands
    Posts
    121
    Hi Jurt,

    Thanks for the repley!

    I turn every char in the Liberation_mono.ttf and convert it to .c but this is very time consuming.

    I think there must be a easier way perhaps on pixel level to turn every character on the right angle, to get a nice curved word ...

    Perhaps someone has a smart idea.... I not see this before on any display so investigation is more than welcome.

    Best,
    Johan

  5. #5
    Senior Member
    Join Date
    Jul 2020
    Posts
    348
    There's always the bitmap rotate trick with 3 shear transforms, but its very pixelated. https://www.ocf.berkeley.edu/~fricke..._shearing.html

  6. #6
    Senior Member
    Join Date
    May 2017
    Location
    Netherlands
    Posts
    121
    To complex for me
    Thanks anyway.
    Johan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •