EDF font reference: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(Created page with 'The font is defined in EDF as follows: font ''name'' { id ''number'' start ''text'' end ''text'' linesize ''number'' space…')
 
No edit summary
 
Line 21: Line 21:


Font names have maximum 128 characters.
Font names have maximum 128 characters.
==Properties==
{|class="wikitable sortable"
!Key
!Description
|-
||'''start'''||First character in font. Can be either a character or an ASCII number.
|-
||'''end'''||Last character in font. Can be either a character or an ASCII number.
|-
||'''linesize'''||Text line height.
|-
||'''spacesize'''||Width of space character, if '''usespacesize''' is '''true'''.
|-
||'''widthdelta'''||Width delta: how much to reduce the width of each character.
|-
||'''tallestchar'''||Absolute height: the height of the tallest font character.
|-
||'''centerwidth'''||Centered width, constant width, used only when '''blockcentered''' is on.
|-
||'''colorable'''||Whether font color can be changed.
|-
||'''uppercase'''||Whether font uses uppercase only.
|-
||'''blockcentered'''||Whether characters are centered in position.
|-
||'''usespacesize'''||Whether to use '''spacesize''' distance for space size, instead of the character graphics.
|}
''To be continued.''

Latest revision as of 02:18, 20 January 2022

The font is defined in EDF as follows:

font name
{
  id             number
  start          text
  end            text
  linesize       number
  spacesize      number
  widthdelta     number
  tallestchar    number
  centerwidth    number
  linearformat   text
  linearlump     identifier
  filter         block
  colorable      boolean
  uppercase      boolean
  blockcentered  boolean
  patchnumoffset integer
}

Font names have maximum 128 characters.

Properties[edit]

Key Description
start First character in font. Can be either a character or an ASCII number.
end Last character in font. Can be either a character or an ASCII number.
linesize Text line height.
spacesize Width of space character, if usespacesize is true.
widthdelta Width delta: how much to reduce the width of each character.
tallestchar Absolute height: the height of the tallest font character.
centerwidth Centered width, constant width, used only when blockcentered is on.
colorable Whether font color can be changed.
uppercase Whether font uses uppercase only.
blockcentered Whether characters are centered in position.
usespacesize Whether to use spacesize distance for space size, instead of the character graphics.

To be continued.