-
September 2nd, 2014, 07:29 #81
ah I'm sorry for not being clear

What I was referring to was since you can set languages, if it was possible to set a font for a language like I thought I read (or must have been dreaming), example: someelvishscript.ttf using /setlanguage elven someelvishscript
Or is it limited to JUST the ones in the extension.
As to the request, I highly appreciate it and thanks for the info in regards to what happened. I personally don't have much issue about it either way, but figure to chime in for the group in regards to it.
-
September 2nd, 2014, 07:38 #82
you can open up the extension and add your own fonts...
rename .mod to .zip and extract
use notepad++ to view/edit/tinker with files.
when you zip them back up again do not zip the parent folder - the files should be in the root of the zip
rename the zip to mod
make sure windows is not hiding the .mod/.zip extensions or you are likely to get confused....
-
September 2nd, 2014, 14:24 #83
Love it!

To expand on what damned is saying here: Fantasy Grounds needs a definition of a font within an XML file - this definition specifies the font file to use, what colour the text will be and the name FG will use to refer to that font.
You can "tinker" with the extension XML files - opening extension.xml you'll see that it is pretty much a list of FG font names and their corresponding file (in the extension). For example:
Note that the font file is an FG font file - you can use the FG Font Generator tool available here (at the bottom of the page) to convert Truetype fonts into .FGF bitmap font files: https://www.fantasygrounds.com/wiki/...veloper_GuidesCode:<font name="elven"> <fgffile name="fonts/dnd4eelvish-regular-14.fgf" /> <color value="#000000" /> </font>
FG now support Truetype fonts in certain controls - I'm not sure if they are fully supported in the chat window, I've done some basic tests and they appear to be but haven't done extensive tests for this extension. If you're trying a TrueType font you'll need to specify the size to use in the FG font defintion, I'd recommend using 14. Here's an example of one of the two TrueType fonts used in the CoreRGP ruleset, note the addition of the size parameter:
So, if you wanted to add your own fonts to this extension you would have to:Code:<font name="reference-h"> <ttf file="graphics/fonts/MarcellusSC-Regular.ttf" name="Marcellus SC" size="24" /> <color value="#660000" /> </font>
- Add your supported font file to the extension.
- Add a font definition to extension.xml that references this new font - use the name you want to use as the default language.
- Package your extension back up and activate it for the campaign you want to use it in.
Note: The extension currently uses community commons fonts which can be legally distributed (see the sources.txt file in the extension). If you modify the fonts being used please do so only for your own use (your own private games), only distribute font files that you have permission to distribute.FG Wiki: How to Compile the FG Logs
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!
-
September 2nd, 2014, 14:26 #84
Apologies - that was the first extension I ever made any successful modifications to...
I did only add extra languages and not change any fonts...
Thus - I could just "tinker" with it!
-
September 2nd, 2014, 15:50 #85
-
April 21st, 2015, 09:15 #86Adept
- Join Date
- Mar 2013
- Posts
- 3
Has this been updated for 3.0.12 ? I just started my new campaign and was surprised to see that this extension isn't working anymore.
Thanks for the help, I really liked this extension.
-
April 21st, 2015, 13:20 #87FG Wiki: How to Compile the FG Logs
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!
-
April 21st, 2015, 13:35 #88
-
April 21st, 2015, 19:09 #89Adept
- Join Date
- Mar 2013
- Posts
- 3
I'm using the 3.5 ruleset. No error messages, just /lang {language} {text} doesn't do anything, it just brings up the help command.
I have it saved in Fantasy Grounds/extensions I thought about saving it in Fantasy Grounds/campaigns/[My Campaign]/extensions but there's no extensions folder there by default. Do you think I should create a folder for that?
Thanks, I'm mostly just a user, not active on the forums as you can tell, lol.
-
April 21st, 2015, 20:28 #90
When you start up the campaign, do you get a message in the chat window saying the extension is loaded?
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)

Reply With Quote



Bookmarks