STAR TREK 2d20
Page 2 of 2 First 12
  1. #11
    Quote Originally Posted by damned View Post
    Just crack it open and experiment...
    I have;

    What sort of conversion do you do to a font to make it a ".fgf"?

    How do you export just one font size? I have .ttf files that contain all sizes, but don't know how to get just one size.

  2. #12

    Join Date
    May 2016
    Location
    Jacksonville, FL
    Posts
    2,211
    Blog Entries
    7
    Code:
    <ttf file="graphics/fonts/Ubuntu-R.ttf" name="Ubuntu" size="18" />
    Unless this extension has changed since I last fooled with it, all the fonts are TTF anyway so the correct markup is already there. Just replace the appropriate ones with the font you want.

  3. #13

  4. #14
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,413
    Details on the <font> definition in the Developer Guide Wiki here: https://www.fantasygrounds.com/refdoc/font.xcp

    And there are lots of examples in the above extension and in FG rulesets - usually in the \graphics directory of the ruleset.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  5. #15
    Thanks -- the reference is helpful. I got hung up on the odd file extensions in the 14 point font example I started examining, but it all makes sense now. Thanks everyone!

  6. #16
    Springroll's Avatar
    Join Date
    Jun 2016
    Location
    Stockholm, Sweden CET
    Posts
    260
    Quote Originally Posted by Talyn View Post
    The only way to fix it (currently) is to define a new window definition for the library category and overwrite CoreRPG with it. Had to do the same thing.
    Is there an instruction anywhere on how to do this?

  7. #17

    Join Date
    May 2016
    Location
    Jacksonville, FL
    Posts
    2,211
    Blog Entries
    7
    Nope. The trick I use in all my Savage World themes (since I normally replace reference-h with a custom font from the official setting books) is:

    Code:
    <font name="library-category">
    	<ttf file="graphics/fonts/MarcellusSC-Regular.ttf" name="Marcellus SC" size="24" />
    	<color value="#000000" />
    </font>
    That creates a new font titled 'library-category' (just something I chose randomly; use whatever makes sense) which is otherwise an exact duplicate of the 'reference-h' font from CoreRPG. Then I overwrite the 'library_booklistcategory' window frame with:

    Code:
    <windowclass name="library_booklistcategory">
    	<margins control="0,0,0,2" />
    	<frame>rowshade</frame>
    	<sheetdata>
    		<stringcontrol name="name">
    			<bounds>5,2,-1,24</bounds>
    			<font>library-category</font>
    			<static />
    		</stringcontrol>
    	</sheetdata>
    </windowclass>
    Which, again, is an exact duplicate of the normal 'library_booklistcategory' except I'm replacing the font with the new one.
    Last edited by Talyn; January 27th, 2019 at 18:40.

  8. #18
    Springroll's Avatar
    Join Date
    Jun 2016
    Location
    Stockholm, Sweden CET
    Posts
    260
    Oh, that's excellent, exactly what I needed, thank you!

  9. #19
    Fabulous extension - lets me shrink the UI to get more on the page while keeping everything readable. Thanks!

  10. #20
    Moved to Armory forum with other extensions.

    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
  •  
FG Spreadshirt Swag

Log in

Log in