This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
en:orx:config:settings_structure:orxtext [2016/04/12 03:32 (8 years ago)] – Example of multiline added sausage | en:orx:config:settings_structure:orxtext [2023/08/25 01:00 (8 months ago)] – [Summary] sausage | ||
---|---|---|---|
Line 6: | Line 6: | ||
<code ini> | <code ini> | ||
+ | String = " | ||
Font = FontTemplate | Font = FontTemplate | ||
- | String = < | + | </ |
=== Font === | === Font === | ||
- | <code ini> | + | <code ini> |
- | Texture | + | [FontTemplate] |
- | TextureOrigin | + | Texture |
- | TextureSize | + | TextureOrigin |
- | CharacterList | + | TextureSize |
- | CharacterSpacing | + | KeepInCache |
- | CharacterSize | + | CharacterList |
- | CharacterHeight | + | CharacterSize |
- | CharacterWidthList= < | + | CharacterHeight |
+ | CharacterWidthList = < | ||
+ | CharacterSpacing | ||
+ | </ | ||
==== Details ==== | ==== Details ==== | ||
Line 60: | Line 64: | ||
* '' | * '' | ||
- | An example of how to use custom fonts can be found in the [[tutorials: | + | An example of how to use custom fonts can be found in the [[en:tutorials: |
===== orxFontGen ===== | ===== orxFontGen ===== | ||
- | orxFontGen is a command line tool that creates orx-formatted custom | + | orxFontGen is a command-line tool that ships with Orx which allows you create |
- | It gathers | + | |
- | + | ||
- | orxFontGen is available for all supported development platforms. ((Windows, Linux, Mac OS X)) | + | |
- | + | ||
- | It is based on the open source [[http://www.freetype.org/|FreeType library]]. | + | |
- | + | ||
- | orxFontGen accepts a number of command line parameters: | + | |
- | * [MANDATORY] a list of input text files to gather the needed characters | + | |
- | * [MANDATORY] a TrueType font file ((usually .ttf)) | + | |
- | * [MANDATORY] a size for characters to print, in pixels | + | |
- | * [OPTIONAL] | + | |
- | * [OPTIONAL] | + | |
- | * [OPTIONAL] | + | |
- | * [OPTIONAL] | + | |
- | * [OPTIONAL] | + | |
- | + | ||
- | Here's its syntax: | + | |
- | + | ||
- | <code dos> | + | |
- | + | ||
- | You can display its help with | + | |
- | + | ||
- | <code dos> | + | |
- | + | ||
- | For any parameter, help can be diplayed using its long name: | + | |
- | + | ||
- | <code dos> | + | |
- | + | ||
- | Let's now see the parameters in details. | + | |
- | + | ||
- | ==== Input text file list ==== | + | |
- | + | ||
- | **-t / '' | + | |
- | + | ||
- | The text file list is mandatory. At least one file has to be provided and multiple files have to be separated by spaces. Unfortunately names of input text files can't include spaces for now.\\ | + | |
- | These files contains all the texts you want to display using this custom bitmal font: the needed characters will be extracted from them. They should be encoded either in plain ASCII or in UTF-8. | + | |
- | + | ||
- | Syntax: | + | |
- | + | ||
- | <code dos>-t TextFile1 [TextFile2 ... TextFileN]</ | + | |
- | + | ||
- | If input files are encrypted with a user-provided key, you need to pass it to orxcrypt using its [[# | + | |
- | + | ||
- | ==== TrueType font file ==== | + | |
- | + | ||
- | **-f / '' | + | |
- | + | ||
- | The TrueType font file parameter is mandatory. It defines the TrueType font file ((usually .ttf)) to use for creating the custom bitmap font. | + | |
- | + | ||
- | Syntax: | + | |
- | + | ||
- | <code dos>-f FontFile</ | + | |
- | + | ||
- | ==== Size ==== | + | |
- | + | ||
- | **-s / '' | + | |
- | + | ||
- | The size parameter is mandatory. It defines the size, in pixels, for the printed characters in the custom bitmap font. | + | |
- | + | ||
- | Syntax: | + | |
- | + | ||
- | <code dos>-s Size</ | + | |
- | + | ||
- | ==== Output name ==== | + | |
- | + | ||
- | **-o / '' | + | |
- | + | ||
- | The output parameter is optional. If none is provided, the custom bitmap font will be stored in orxFont.png/ | + | |
- | + | ||
- | ==== Monospace ==== | + | |
- | + | ||
- | **-m / '' | + | |
- | + | ||
- | This parameter is optional. If defined the font will be treated as a fixed width font, ie. all the characters will have the same size.\\ | + | |
- | Otherwise, by default, the tool will output a variable width font. | + | |
- | + | ||
- | ==== Advance ==== | + | |
- | + | ||
- | **-a / '' | + | |
- | + | ||
- | This parameter is optional and only used if '' | + | |
- | Otherwise, by default, the characters will be packed as tight as possible (usually preferable). | + | |
- | + | ||
- | ==== Ascending ==== | + | |
- | + | ||
- | **-asc / '' | + | |
- | + | ||
- | This parameter is optional. It will use the ascending value stored in the font to determine the baseline. Unfortunately the standard isn't always respected and this value might mean different things for different fonts. Only try it if your characters don't look correctly aligned vertically.\\ | + | |
- | Otherwise, by default, the max character height will be used to determine the baseline, which should work in most cases. | + | |
- | + | ||
- | ==== Padding ==== | + | |
- | + | ||
- | **-p / '' | + | |
- | This parameter is optional. It defines the extra space, in pixel, to put around a character glyph and that will become part of the character itself after export. | ||
==== Latest config settings for the Development Version ==== | ==== Latest config settings for the Development Version ==== | ||
{{section> | {{section> | ||