PDA

View Full Version : Bigger Font Extension cant bold or Italic



Willot
April 6th, 2020, 23:41
Just changing an Theme extension for PF2 to work with FGU. Part of the theme a larger (and a different) font. All is good except Ive lost the ability to Bold or Italic (cntrl-B, cntrl-I); underline works fine for some reason?

Is it because I had to change all the FGF to TTF versions?

Its...odd?

LordEntrails
April 6th, 2020, 23:49
Does the font file you have include bold and italic data? Does the font file pass integrity checks?

Willot
April 7th, 2020, 00:08
Does the font file you have include bold and italic data? Does the font file pass integrity checks?

Yep, it has all the versions, bold,italic,bolditalic
Console didnt throw any errors


<font name="reference-h">
<ttf file="graphics/fonts/Bookerly-Bold.ttf" name="Bookerly" size="24" bold="true" />
<color value="#660000" />
</font>
<font name="reference-bi">
<ttf file="graphics/fonts/Bookerly-BoldItalic.ttf" name="Bookerly" size="20" bold="true" italic="true"/>
<color value="#000000" />
</font>
<font name="sheettext">
<ttf file="graphics/fonts/Bookerly-Regular.ttf" name="Bookerly" size="18"/>
<color value="#000000" />
</font>
<!--Story Text-->
<font name="reference-r">
<ttf file="graphics/fonts/Bookerly-Regular.ttf" name="Bookerly" size="18"/>
<color value="#000000" />
</font>
<font name="reference-b">
<ttf file="graphics/fonts/Bookerly-Bold.ttf" name="Bookerly" size="18" bold="true"/>
<color value="#000000" />
</font>
<font name="reference-i">
<ttf file="graphics/fonts/Bookerly-RegularItalic.ttf" name="Bookerly" size="18" italic="true" />
<color value="#000000" />
</font>
<font name="sheetlabel">
<ttf file="graphics/fonts/Bookerly-Regular.ttf" name="Bookerly" size="18"/>
<color value="#000000" />
</font>

33203

Mortar
April 7th, 2020, 00:24
The problem I am seeing is that you have given all the fonts the same name in their definitions.



<font name="reference-h">
<ttf file="graphics/fonts/Bookerly-Bold.ttf" name="Bookerly" size="24" bold="true" />
<color value="#660000" />
</font>
<font name="reference-bi">
<ttf file="graphics/fonts/Bookerly-BoldItalic.ttf" name="Bookerly" size="20" bold="true" italic="true"/>
<color value="#000000" />
</font>
<font name="sheettext">
<ttf file="graphics/fonts/Bookerly-Regular.ttf" name="Bookerly" size="18"/>
<color value="#000000" />
</font>
<!--Story Text-->
<font name="reference-r">
<ttf file="graphics/fonts/Bookerly-Regular.ttf" name="Bookerly" size="18"/>
<color value="#000000" />
</font>
<font name="reference-b">
<ttf file="graphics/fonts/Bookerly-Bold.ttf" name="Bookerly" size="18" bold="true"/>
<color value="#000000" />
</font>
<font name="reference-i">
<ttf file="graphics/fonts/Bookerly-RegularItalic.ttf" name="Bookerly" size="18" italic="true" />
<color value="#000000" />
</font>
<font name="sheetlabel">
<ttf file="graphics/fonts/Bookerly-Regular.ttf" name="Bookerly" size="18"/>
<color value="#000000" />
</font>

The first font you defined should look more like this:


<font name="reference-h">
<ttf file="graphics/fonts/Bookerly-Bold.ttf" name="Bookerly-Bold" size="24" />
<color value="#660000" />
</font>



This is from the CoreRPG fonts file:


<!-- Note: FGF tags processed first for FG Classic, and TTF tags processed first for FGU -->

<!-- Default fonts - REQUIRED -->
<font name="defaultstringcontrol">
<fgffile name="graphics/fonts/regular-10.fgf" />
<ttf file="graphics/fonts/Noto_Sans/NotoSans-Regular.ttf" name="Noto Sans" size="12" />
<color value="#000000" />
</font>
<font name="defaultnumbercontrol">
<fgffile name="graphics/fonts/regular-10.fgf" />
<ttf file="graphics/fonts/Noto_Sans/NotoSans-Regular.ttf" name="Noto Sans" size="12" />
<color value="#000000" />
</font>

<!-- Distance font - REQUIRED -->
<font name="distancelabel">
<fgffile name="graphics/fonts/diemod.fgf" />
<ttf file="graphics/fonts/Noto_Sans/NotoSans-Bold.ttf" name="Noto Sans Bold" size="18" />
<color value="#000000" />
</font>

<!-- Dice fonts - REQUIRED -->
<font name="diceexpr" version="&gt;=4">
<ttf file="graphics/fonts/Noto_Sans/NotoSans-Regular.ttf" name="Noto Sans" size="12" />
<color value="#000000" />
</font>
<font name="diemod">
<fgffile name="graphics/fonts/diemod.fgf" />
<ttf file="graphics/fonts/Noto_Sans/NotoSans-Bold.ttf" name="Noto Sans Bold" size="18" />
<color value="#000000" />
</font>
<font name="dieresult">
<fgffile name="graphics/fonts/regular-10.fgf" />
<ttf file="graphics/fonts/Noto_Sans/NotoSans-Regular.ttf" name="Noto Sans" size="12" />
<color value="#ffffff" />
</font>

<!-- Drag fonts - REQUIRED -->
<font name="draglabel">
<fgffile name="graphics/fonts/draglabel.fgf" />
<ttf file="graphics/fonts/Noto_Sans/NotoSans-Regular.ttf" name="Noto Sans" size="32" />
<color value="#000000" />
</font>

<!-- Chat fonts - REQUIRED -->
<font name="chatfont">
<fgffile name="graphics/fonts/regular-10.fgf" />
<ttf file="graphics/fonts/Noto_Sans/NotoSans-Regular.ttf" name="Noto Sans" size="12" />
<color value="#261A12" />
</font>
<font name="emotefont">
<fgffile name="graphics/fonts/regular-10.fgf" />
<ttf file="graphics/fonts/Noto_Sans/NotoSans-Regular.ttf" name="Noto Sans" size="12" />
<color value="#880000" />
</font>
<font name="narratorfont">
<fgffile name="graphics/fonts/bold-10.fgf" />
<ttf file="graphics/fonts/Noto_Sans/NotoSans-Bold.ttf" name="Noto Sans Bold" size="12" />
<color value="#261A12" />
</font>
<font name="systemfont">
<fgffile name="graphics/fonts/regular-10.fgf" />
<ttf file="graphics/fonts/Noto_Sans/NotoSans-Regular.ttf" name="Noto Sans" size="12" />
<color value="#660066" />
</font>
<font name="msgfont">
<fgffile name="graphics/fonts/regular-10.fgf" />
<ttf file="graphics/fonts/Noto_Sans/NotoSans-Regular.ttf" name="Noto Sans" size="12" />
<color value="#660066" />
</font>
<font name="oocfont">
<fgffile name="graphics/fonts/regular-10.fgf" />
<ttf file="graphics/fonts/Noto_Sans/NotoSans-Regular.ttf" name="Noto Sans" size="12" />
<color value="#005500" />
</font>

<!-- Chat fonts -->
<font name="chatnpcfont">
<fgffile name="graphics/fonts/regular-10.fgf" />
<ttf file="graphics/fonts/Noto_Sans/NotoSans-Regular.ttf" name="Noto Sans" size="12" />
<color value="#000066" />
</font>
<font name="chatgmfont">
<fgffile name="graphics/fonts/bolditalic-10.fgf" />
<ttf file="graphics/fonts/Noto_Sans/NotoSans-BoldItalic.ttf" name="Noto Sans Bold Italic" size="12" />
<color value="#000000" />
</font>
<font name="whisperfont">
<fgffile name="graphics/fonts/bold-10.fgf" />
<ttf file="graphics/fonts/Noto_Sans/NotoSans-Bold.ttf" name="Noto Sans Bold" size="12" />
<color value="#660066" />
</font>

Willot
April 7th, 2020, 00:43
The problem I am seeing is that you have given all the fonts the same name in their definitions.

DAMN YOU FIND/REPLACE DAMN YOU TO HELL!!!

Thanks, dude!
33204

Mortar
April 7th, 2020, 00:47
Glad to see that it helped. The reference manual screen shot looks good!