Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Representing character information in a compressed bitmap font

Status
Not open for further replies.

bengR

Technical User
Oct 30, 2007
13
US
I am creating a custom compressed bitmap font (class 2) and I need some clarification as to how the character data is represented.

Assuming the following character:
width - 8
height - 8

binary character data:
Code:
01000001
01000001
01000001
01000001
01000001
01000001
01000001
01000001
After compression, the character data should be the following string, correct?
(Values are decimal)
Code:
8 1 1 5 1

If the above string is correct, how should it be represented in the PCL file?
Is it just the ASCII character that corresponds with the ordinal value of each byte in the string?
e.g.:
Code:
char(8).char(1).char(1).char(5).char(1)

Thank you for your time
 
I think that the line repetition count is the number of times that the row is repeated AFTER the first occurrence.

So your raster data would require the following bytes (shown in hexadecimal representation):

0x0701010501

How you populate the array depends on the language you are using, and its syntax.

For example, with C#, 'char' is a 16-bit object (representing a Unicode code-point), so you'd instead probably use 'byte' arrays.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top