Author Topic: AttractMode Plus Font Display vs AttractMode (Resolved)  (Read 1629 times)

bionictoothpick

  • Sr. Member
  • ****
  • Posts: 325
  • He who laughs lasts.
    • View Profile
AttractMode Plus Font Display vs AttractMode (Resolved)
« on: December 07, 2024, 06:28:17 PM »
RESOLVED: Add .ttf after the font name...

This may not be the correct forum,

But my fonts show in my layout on attractmode, but not in attractmode plus.

Thoughts?
« Last Edit: December 09, 2024, 05:12:52 AM by bionictoothpick »

kent79

  • Hero Member
  • *****
  • Posts: 864
    • View Profile
Re: AttractMode Plus
« Reply #1 on: December 08, 2024, 03:14:55 AM »
The format is

fe.layout.font = "font/impact.ttf";

bionictoothpick

  • Sr. Member
  • ****
  • Posts: 325
  • He who laughs lasts.
    • View Profile
Re: AttractMode Plus
« Reply #2 on: December 08, 2024, 11:46:02 AM »
This is the code I'm using...

Font is in path, and installed on the windows machine.

local l = fe.add_text("[Title]", 5, 12, 550, 35 );
   l.set_rgb( 255, 255, 255 );
   l.font="Digital-7 Italic";
   l.align = Align.Left;
   l.style = Style.Bold;
   l.charsize = 28;

kent79

  • Hero Member
  • *****
  • Posts: 864
    • View Profile
Re: AttractMode Plus
« Reply #3 on: December 08, 2024, 03:52:12 PM »
make sure with file extension name

l.font="Digital-7 Italic.ttf";

bionictoothpick

  • Sr. Member
  • ****
  • Posts: 325
  • He who laughs lasts.
    • View Profile
Re: AttractMode Plus
« Reply #4 on: December 09, 2024, 05:11:50 AM »
Yes adding the .ttf worked!

Thank you.