Anonymous

FZX format: Difference between revisions

From Sinclair Wiki
m
Parameters in bold
mNo edit summary
m (Parameters in bold)
Line 11: Line 11:


== Header ==
== Header ==
height - vertical gap between baselines in pixels
'''height''' - vertical gap between baselines in pixels


This is the number of pixels to move down after a carriage return.
This is the number of pixels to move down after a carriage return.




tracking - horizontal gap between characters in pixels
'''tracking''' - horizontal gap between characters in pixels


Character definitions should not include any white space and this value should normally be a positive number. It may be zero for script style fonts where characters run together.
Character definitions should not include any white space and this value should normally be a positive number. It may be zero for script style fonts where characters run together.




lastchar - the ASCII code of the last definition in the font
'''lastchar''' - the ASCII code of the last definition in the font


All characters up to and including this character must have an entry in the list of definitions although the entry can be blank.
All characters up to and including this character must have an entry in the list of definitions although the entry can be blank.
Line 29: Line 29:




offset  - word containing the offset to the character definition (plus any kern in the high two bits)
'''offset'''   - word containing the offset to the character definition (plus any kern in the high two bits)


This is calculated from the start of the table and stored as an offset rather than an absolute address to make the font relocatable. The kern is the left shift towards the previous character and can be between 1 and 3 pixels.
This is calculated from the start of the table and stored as an offset rather than an absolute address to make the font relocatable. The kern is the left shift towards the previous character and can be between 1 and 3 pixels.
Line 38: Line 38:




shift  - nibble containing the amount of leading for the character (0-15)
'''shift''' - nibble containing the amount of leading for the character (0-15)


This is the number of vertical pixels to skip before drawing the character. When more than 15 pixels of white space are required the additional white space must be added to the character definition.
This is the number of vertical pixels to skip before drawing the character. When more than 15 pixels of white space are required the additional white space must be added to the character definition.




width    - nibble containing the width of the character (1-16)
'''width'''   - nibble containing the width of the character (1-16)


The width of the character definition in pixels. The value stores is  one less than the required value.
The width of the character definition in pixels. The value stores is  one less than the required value.
56

edits