Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Two line letters in WPS?

Re: Two line letters in WPS?

From: <tinousus_at_yahoo.com>
Date: Wed, 21 Apr 2004 11:36:12 -0400

Well, maybe I didn't make myself clear. I understand
the bdf font format a little and I know that each font
has only one height. But I am using two fonts at the
same time now. One is 11 x 11 Chinese font and the
other is 6 x 8 FONT_SYSFIXED. When using FONT_SYSFIXED,
I use blank(0x00) pad to make FONT_SYSFIXED showed as
6 x 11.

What I want to do is: Why waste 3 rows of pixs when a
char string has no Chinese character? So if there is
only English char in the whole string, set the height
of whole string as 8. If there is one or more Chinese
char in the char string, set the height of whole string
as 11.

For example: if there is only one Chinese char in a screen.
Right now a screen has only 5 lines(11 x 5 = 55). If the
changable height is realized, a screen can display 6 lines
(8 x 5 + 11 x 1 = 51).

Right now I am not quit sure where to check if a string has
Chinese char and accordingly set the correct height. At
some place, height is set by "lcd_getstringsize("A", &w, &h)"
instead of "lcd_getstringsize(str, &w, &h)", which seems make
it impossible to just change the code in lcd_getstringsize()

Anyway, I was just hoping to get some clue about how the code
works in lcd part. I'll keep tring to see if it's possible.

Isaac

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Received on 2004-04-21

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy