Skip to content

Commit

Permalink
Merge branch 'master' of github.com:eprilx/FFDConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
eprilx committed Aug 5, 2024
2 parents c952dcb + 5dfa017 commit e3de45f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions AutoUpdate.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.3.2</version>
<url>https://github.com/eprilx/FFDConverter/releases/download/1.3.2/FFDConverter_1.3.2.zip</url>
<version>1.3.3</version>
<url>https://github.com/eprilx/FFDConverter/releases/download/1.3.3/FFDConverter_1.3.3.zip</url>
<mandatory>false</mandatory>
<changelog>https://github.com/eprilx/FFDConverter/releases/tag/1.3.2</changelog>
</item>
<changelog>https://github.com/eprilx/FFDConverter/releases/tag/1.3.3</changelog>
</item>
2 changes: 1 addition & 1 deletion FFDConverter/FFD/FFDFormat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ private static void ReadTable1FFD(FileStream input, ref general infoFFD)
else if (infoFFD.table1Type == general.Type.U16)
for (int i = 0; i < infoFFD.charsCount; i++)
input.ReadValueU16(); // = 0
else if (infoFFD.table1Type == general.Type.U16)
else if (infoFFD.table1Type == general.Type.U32)
for (int i = 0; i < infoFFD.charsCount; i++)
input.ReadValueU32(); // = 0
}
Expand Down
2 changes: 1 addition & 1 deletion FFDConverter/FFDConverter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<NeutralLanguage>en</NeutralLanguage>
<AssemblyVersion>1.3.2</AssemblyVersion>
<AssemblyVersion>1.3.3</AssemblyVersion>
<PackageProjectUrl>https://github.com/eprilx/FFDConverter</PackageProjectUrl>
<RepositoryUrl>https://github.com/eprilx/FFDConverter</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ FFDConverter --ffd2fnt -v FC5 -f fcz_bold_default.ffd -o - fcz_bold_default.ffd.
<img src="sampleImg/guiScreen.png" height="280"/>

- fcz_bold_default.ffd is the file you get when unpack game files.
- arialFC5.fnt is a character descriptions file generated by [BMFont](https://www.angelcode.com/products/bmfont/) or [Hiero](https://github.com/libgdx/libgdx/wiki/Hiero)
- arialFC5.fnt is a character descriptions file generated by [BMFont](https://www.angelcode.com/products/bmfont/) or [Hiero](https://libgdx.com/wiki/tools/hiero)
- fcz_bold_default.ffd.fnt is a character descriptions file exported from original FFD (fcz_bold_default.ffd)

*Note 1: After replace \*.ffd file, you need to replace image file in-game (e.g. \*.xbt from Far Cry series)*
*Note 1: After replace \*.ffd file, you need to replace image file in-game (e.g. \*.xbt from Far Cry series). Take a look about modding image/texture by these tools: AnvilToolkit, FCB Converter, Dunia Tools,...*

*Note 2: Make font more smoother without nasty pixel, try creating [signed distance field font with Hiero](https://github.com/libgdx/libgdx/wiki/Distance-field-fonts) or searching about ``signed distance field`` for more solution.*
*Note 2: Make font more smoother without nasty pixel, try creating [signed distance field font with Hiero](https://libgdx.com/wiki/graphics/2d/fonts/distance-field-fonts#generating-the-font) or searching about ``signed distance field`` for more solution.*

If the font is displayed incorrectly in game, you should edit config.xml to be more compatible.
- *scaleXadvance = 1.0 (left) and scaleXadvance = 1.3 (right)*
Expand Down

0 comments on commit e3de45f

Please sign in to comment.