5E Product Walkthrough Playlist
  1. #1
    Mask_of_winter's Avatar
    Join Date
    Feb 2009
    Location
    USA Eastern Time Zone (GMT -5/-4)
    Posts
    2,479
    Blog Entries
    1

    Font and fgf file

    I'm looking to modify font types for an extension. How do you go on creating an fgf file? Would simply renaming a ttf file work?
    Writer for Just Insert Imagination and co-host of the Wild Die Podcast.
    Find me on G+ to get in on one-shots, check out my YouTube and Twitch channel and follow me on Twitter @Mask_of_Winter

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,408
    See the FGF font generator here: https://www.fantasygrounds.com/wiki/...veloper_Guides

    TTF files are used for a couple of headers in FG now (windowtitle and reference-h FG font names). However, I'm not sure which controls they are fully supported in at this point. See graphics\graphics_fonts.xml in CoreRPG for the 2 font entries using TTFs.
    Last edited by Trenloe; June 8th, 2014 at 14:22.
    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!

  3. #3
    Mask_of_winter's Avatar
    Join Date
    Feb 2009
    Location
    USA Eastern Time Zone (GMT -5/-4)
    Posts
    2,479
    Blog Entries
    1
    Right now it's for Savage Worlds theme extension. Once SW is ported over to CoreRPG I'll probably have to make adjustments. Thank you.
    Writer for Just Insert Imagination and co-host of the Wild Die Podcast.
    Find me on G+ to get in on one-shots, check out my YouTube and Twitch channel and follow me on Twitter @Mask_of_Winter

  4. #4
    Basically, the font generator tool available in Downloads converts a TTF into a series of bitmaps for each single-byte character in the font and saves into a FGF file.

    The font.ttf ruleset tag basically incorporates that conversion into the FG client, bypassing the need for the FGF intermediate step.

    The reason it hasn't been documented in detail in the reference guide up to this point and more generally announced is that I felt it had not been as heavily tested as I would like. At this point, I'm feeling fairly comfortable with it, since it's been in the client since v3.0.0.

    Format is:
    Code:
    <font name="FG Font Name">
      <ttf file="TTF File Path" name="TTF Font Name" size="Desired Font Height" />
      <color value="Color Hex Value" />
    </font>
    Let me know if you have any problems.

    Cheers,
    JPG

  5. #5
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,408
    Quote Originally Posted by Moon Wizard View Post
    Basically, the font generator tool available in Downloads converts a TTF into a series of bitmaps for each single-byte character in the font and saves into a FGF file.
    I was wondering exactly how it worked/what the TTF support was.

    Thanks for explaining, very useful.
    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!

  6. #6
    Mask_of_winter's Avatar
    Join Date
    Feb 2009
    Location
    USA Eastern Time Zone (GMT -5/-4)
    Posts
    2,479
    Blog Entries
    1
    It worked without a problem! Thanks guys.
    Writer for Just Insert Imagination and co-host of the Wild Die Podcast.
    Find me on G+ to get in on one-shots, check out my YouTube and Twitch channel and follow me on Twitter @Mask_of_Winter

  7. #7
    Mask_of_winter's Avatar
    Join Date
    Feb 2009
    Location
    USA Eastern Time Zone (GMT -5/-4)
    Posts
    2,479
    Blog Entries
    1
    Attachment 6697

    Code:
    <font name="sheetlabel">
    <fgffile name="graphics/fonts/abaddon_bold_14.fgf" />
    <color value="#000000" />
    </font>

    I applied this code. It changed the font alright but not the color. I changed all three tags that had that yellow/brown color (#261A12) to the black color code but it's not changing it to black. What am I missing here?
    Writer for Just Insert Imagination and co-host of the Wild Die Podcast.
    Find me on G+ to get in on one-shots, check out my YouTube and Twitch channel and follow me on Twitter @Mask_of_Winter

  8. #8
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,408
    Quote Originally Posted by Mask_of_winter View Post
    I applied this code. It changed the font alright but not the color. I changed all three tags that had that yellow/brown color (#261A12) to the black color code but it's not changing it to black. What am I missing here?
    Does the colour get overridden when the "sheetlabel" font is used within the XML sheet data, or a template used?

    The font definition for sheetlabel is the lowest level of definition, this could very well be overridden by a control template or when the control is used within the sheet.
    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!

  9. #9
    Mask_of_winter's Avatar
    Join Date
    Feb 2009
    Location
    USA Eastern Time Zone (GMT -5/-4)
    Posts
    2,479
    Blog Entries
    1
    Quote Originally Posted by Trenloe View Post
    Does the colour get overridden when the "sheetlabel" font is used within the XML sheet data, or a template used?

    The font definition for sheetlabel is the lowest level of definition, this could very well be overridden by a control template or when the control is used within the sheet.
    Yes, it was in the template_charsheet.xml file, sheetlabel font. It did change the sheetlabel font to black for the Attributes but not for the Derived Stats. Hmmm
    Writer for Just Insert Imagination and co-host of the Wild Die Podcast.
    Find me on G+ to get in on one-shots, check out my YouTube and Twitch channel and follow me on Twitter @Mask_of_Winter

  10. #10
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,408
    Quote Originally Posted by Mask_of_winter View Post
    Yes, it was in the template_charsheet.xml file, sheetlabel font. It did change the sheetlabel font to black for the Attributes but not for the Derived Stats. Hmmm
    Are the derived stats using a different control?
    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!

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
  •  
5E Character Create Playlist

Log in

Log in