Standalone DynamicSpriteFontGenerator 0.4 (Generate fonts without XNA Game Studio)

I know it's been a fair bit but if anyone needs to know exactly what the five things do:
  • Combat_Text: The text that appears on landing a hit.
  • Combat_Crit: The text that appears on landing a critical. Should be a step larger, possibly bold or italic.
  • Death_Text: Death message, Title Screen options
  • Item_Stack: Stack digits, Keybind UI options
  • Mouse_Text: everything else
 
extremely late reply but
make sure to check the fonts you installed. you may want to change the font to other font name you installed


all you have to do is to put it in C:\Users\<username>\Documents\My Games\Terraria\ResourcePacks\<your font resource pack directory>\Content\Fonts
and then rename it to one of the following:
  • Combat_Crit.xnb
  • Combat_Text.xnb
  • Death_Text.xnb
  • Item_Stack.xnb
  • Mouse_Text.xnb
was wondering what size of text dose the dmg numbers have to be for it to work for combact and the crit
 
我仍然在想创建自己的字体时遇到问题,我不知道怎么做,我仍然不明白。

[代码]检测到的描述文件:1
* SampleFont.dynamicfont


开始加载描述文件: SampleFont.dynamicfont ..做!
开始编译字体。
Excepción no controlada: Microsoft.Xna.Framework.Content.Pipeline.InvalidContentException: 找不到字体系列“Source Han Sans SC Regular”。请确保已安装请求的字体,并且是 TrueType 或 OpenType 字体。
en Microsoft.Xna.Framework.Content.Pipeline.Processors.FontRasterizer.CreateFont(FontDescription description)
en Microsoft.Xna.Framework.Content.Pipeline.Processors.FontRasterizer..ctor(FontDescription 描述)
en Microsoft.Xna.Framework.Content.Pipeline.Processors.FontDescriptionProcessor.Process(FontDescription input, ContentProcessorContext context)
en ReLogic.Content.Pipeline.DynamicFontProcessor.Process(DynamicFontDescription input, ContentProcessorContext context)
en DynamicFontGenerator.Generator.CompileFonts() en C:\Users\zitwa\Source\Repos\DynamicFontGenerator\DynamicFontGenerator\Generator.cs:línea 83
en DynamicFontGenerator.Generator.Initialize() en C:\Users\zitwa\Source\Repos\DynamicFontGenerator\DynamicFontGenerator\Generator.cs:línea 51
en Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
en DynamicFontGenerator.Generator.Main() en C:\Users\zitwa\Source\Repos\DynamicFontGenerator\DynamicFontGenerator\Generator.cs:línea 22[/CODE]
您需要修改多个地点

Look for the content "Source Han Sans SC Regular" in the document and modify it to the corresponding font name
 
使用过程中发现的问题:使用像素字体时,无论字体大小如何,字形的像素都无法与精灵序列位图的像素对齐。有人知道我该怎么办吗?
 
Last edited:
Back
Top Bottom