PrintMini char size
16 posts
• Page 1 of 2 • 1, 2
- hayzel
- Member
- Posts: 43
- Joined: Thu May 31, 2012 5:45 pm
- Location: Greece
- Calculators: Casio fx-9860G SD
PrintMini char size
PrintMini built-in text drawing routine, has a constant font size?
i.e. all characters are x * y pixels in size? or the typesetting uses different x,y sizes for each character?
i.e. all characters are x * y pixels in size? or the typesetting uses different x,y sizes for each character?
- hayzel
- Member
- Posts: 43
- Joined: Thu May 31, 2012 5:45 pm
- Location: Greece
- Calculators: Casio fx-9860G SD
Re: PrintMini char size
Is there any place I can find font-metrics?
for example A capital is 4px, ! is 3 px etc...
for example A capital is 4px, ! is 3 px etc...
- SimonLothar
- Senior Member
-
- Posts: 605
- Joined: Sat Sep 15, 2012 6:59 am
- Location: Krautland ****
- Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400
Re: PrintMini char size
You can get a minigyph definition by syscall 0137.
char*GetMiniGlyph( short glyphno, short*width );
Depending on the returned width you have to interpret the returned bitmap in a different way.
with width <= 4 take 5 nibbles: each nibble representing one glyph line
else get 5 bytes: each byte representing one glyph line.
F. i. lower i:
width 2
bitmap:
08,08,80
giving:
----
*---
----
*---
*---
or upper M:
width 6
bitmap 88,D8,A8,88,88
giving:
*---*---
**-**---
*-*-*---
*---*---
*---*---
char*GetMiniGlyph( short glyphno, short*width );
Depending on the returned width you have to interpret the returned bitmap in a different way.
with width <= 4 take 5 nibbles: each nibble representing one glyph line
else get 5 bytes: each byte representing one glyph line.
F. i. lower i:
width 2
bitmap:
08,08,80
giving:
----
*---
----
*---
*---
or upper M:
width 6
bitmap 88,D8,A8,88,88
giving:
*---*---
**-**---
*-*-*---
*---*---
*---*---
I'll be back!
Re: PrintMini char size
Is it possible to make a faster PrintMini with this syscall or is PrintMini already as fast as possible?
- hayzel
- Member
- Posts: 43
- Joined: Thu May 31, 2012 5:45 pm
- Location: Greece
- Calculators: Casio fx-9860G SD
Re: PrintMini char size
thanks for the info, simon but I am using the official sdk. I will try to make a table for the glyphs with widths and heights when I have time.
- SimonLothar
- Senior Member
-
- Posts: 605
- Joined: Sat Sep 15, 2012 6:59 am
- Location: Krautland ****
- Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400
Re: PrintMini char size
The syscall merely fetches the glyph-pointer and is very fast. There are optimized sprite-to-VRAM routines around, which could transfer the glyph to VRAM faster than PrintMini. But I do not believe that PrintMini is significantly time consuming in the overall process. Especially when considering the poor relaxation of the LCD. I just had a look with my little noteview in mini-mode. While page-scrolling the letters already blur, t. i. the LCD-relaxation seems to be the speed limiting factor. I remember me programming fargoal. I had to slow down the display procedures to have moving objects remain visible at all.Casimo wrote:Is it possible to make a faster PrintMini with this syscall or is PrintMini already as fast as possible?
I'll be back!
- SimonLothar
- Senior Member
-
- Posts: 605
- Joined: Sat Sep 15, 2012 6:59 am
- Location: Krautland ****
- Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400
Re: PrintMini char size
I think this is a liquid crystal physics thing. Tuning only possible with money.Casimo wrote:Is it possible to overclock the LCD / make it work faster?
I'll be back!
16 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 23 guests