1
\$\begingroup\$

Since FNT is a bitmap font I was thinking perhaps making the padding negative to the right and left side of the characters and rasterizing each glyph already skewed by an angle could make the font appear to be tilted. Does any one know whether FNT sports negative padding or whether Godot support some form of skewing that could accomplish that?

Please take a look at the image to see what I'm describing

enter image description here

\$\endgroup\$

2 Answers 2

1
\$\begingroup\$

A web search for "godot text padding" brings up the documentation for BBCode in RichTextLabel; among the text rendering option that can be adjusted, it mentions:

_process_custom_fx
This is where the logic of each effect takes place and is called once per character during the draw phase of text rendering. This passes in a CharFXTransform object, which holds a few variables to control how the associated character is rendered:
...

  • offset is an offset position relative to where the given character should render under normal circumstances.
\$\endgroup\$
1
  • \$\begingroup\$ I'll give it try. Thanks so much. \$\endgroup\$
    – rraallvv
    Commented Dec 24, 2020 at 20:28
1
\$\begingroup\$

This will work with any kind of font.

enter image description here

The image shows a shader written for a CanvasItem of type Label. To create the shader I followed the tutorial here.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .