5E Character Create Playlist

Thread: Font size

  1. #1
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    253

    Font size

    Is there a way to know the size of a font whose name you know?
    Code:
    	<font name="narratorfont">
    		<ttf file="graphics/fonts/Noto_Sans/NotoSans-Bold.ttf" name="Noto Sans Bold" size="16" />
    		<color value="#261A12" />
    	</font>
    For example, in the code shown narratorfont has the size 16. I can set a font in a control with setFont(myFont), but what if I need to know its size to better organize my view?
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  2. #2
    No, there is no API for that information. Though, it is general practice for layered rulesets and extensions to override fonts with the same size fonts for best compatibility with themes and more. So, just assume that if you are using a predefined font, then it is the size defined in CoreRPG.

    Regards,
    JPG

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Log in

Log in