×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Representing character information in a compressed bitmap font

Representing character information in a compressed bitmap font

Representing character information in a compressed bitmap font

(OP)
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

RE: Representing character information in a compressed bitmap font

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.  

RE: Representing character information in a compressed bitmap font

(OP)
Thanks Dan.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close