FZX format: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 12: Line 12:


The header format is:
The header format is:


baseline - vertical gap between baselines in pixels
baseline - 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
Line 30: Line 32:


The table entry format is:
The table entry format is:


offset  - word containing the offset to the character definition
offset  - word containing the offset to the character definition


This is calculated from the start of the table and stored as an offset rather than an absolute address to make the font relocatable.  
This is calculated from the start of the table and stored as an offset rather than an absolute address to make the font relocatable.  


leading  - nibble containing the amount of leading for the character (0-15)
leading  - 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.


The byte containing the leading and width can be calculated as follows:
The byte containing the leading and width can be calculated as follows:
87

edits

Navigation menu