Text Layer

Layer_other_text_icon.png

About Text Layers

[todo]

A Text Layer can be created with the Text Tool or by drag and drop.

Parameters of Text Layers

The parameters of the text layers are:

Name Value Type
Type_real_icon.png Z Depth 0.000000 real
Type_real_icon.png Amount 1.000000 real
Type_integer_icon.png Blend Method Composite integer
Type_string_icon.png Text Text Layer string
Type_gradient_icon.png Color p_color_green.png color
Type_integer_icon.png Font Family Sans Serif string
Type_integer_icon.png Style Nomral integer
Type_integer_icon.png Weight Normal integer
Type_real_icon.png Horizontal Spacing 1.000000 real
Type_real_icon.png Vertical Spacing 1.000000 real
Type_vector_icon.png Size 0.500000u,0.500000u vector
Type_vector_icon.png Orientation 0.500000u,0.500000u vector
Type_vector_icon.png Origin 0.00000u,0.000000u vector
Type_bool_icon.png Kerning p_checkbox_off.png bool
Type_bool_icon.png Sharpen Edges p_checkbox_off.png bool
Type_bool_icon.png Invert p_checkbox_off.png bool

How to use Text Layer

Quick trick that allows to use custom fonts in Synfig.

Here’s what you need:

  • Put your font (ttf) file in the same dir as your Synfig (sif or sifz) file.
  • Create Text Layer and in the Font Family parameter put full filename of font file (i.e. “LobsterTwo-Regular.ttf”, without quotes).

That’s it!

../_images/Text_layer-1.png

After examining font files, you might notice that different variants of font style are usually residing in separate files (i.e. “LobsterTwo-Italic.ttf”, “LobsterTwo-Bold.ttf”, “LobsterTwo-BoldItalic.ttf”, etc). So you can use different font variants in the same way just by referencing the appropriate font file.

If your font file is placed in different location, then you can specify absolute or relative path to it (i.e. “../fonts/LobsterTwo-Bold.ttf”).

../_images/Text_layer-2.png