Register

PrintMini char size

Discuss issues related to the fx-9860G Software Development Kit
Member
Posts: 43
Joined: Thu May 31, 2012 5:45 pm
Location: Greece
Calculators: Casio fx-9860G SD

PrintMini char size

Postby hayzel » Thu Feb 07, 2013 5:35 pm

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?

Senior Member
User avatar
Posts: 113
Joined: Sun Dec 16, 2012 2:59 pm
Calculators: None

Re: PrintMini char size

Postby Casimo » Thu Feb 07, 2013 7:44 pm

Every char is 5 pixels high and 3 to 5 pixels wide, so it is not constant.
Image

Member
Posts: 43
Joined: Thu May 31, 2012 5:45 pm
Location: Greece
Calculators: Casio fx-9860G SD

Re: PrintMini char size

Postby hayzel » Mon Feb 11, 2013 11:35 am

Is there any place I can find font-metrics?
for example A capital is 4px, ! is 3 px etc...

Senior Member
User avatar
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

Postby SimonLothar » Mon Feb 11, 2013 1:35 pm

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:
*---*---
**-**---
*-*-*---
*---*---
*---*---
I'll be back!

Senior Member
User avatar
Posts: 113
Joined: Sun Dec 16, 2012 2:59 pm
Calculators: None

Re: PrintMini char size

Postby Casimo » Mon Feb 11, 2013 2:45 pm

Is it possible to make a faster PrintMini with this syscall or is PrintMini already as fast as possible?
Image

Member
Posts: 43
Joined: Thu May 31, 2012 5:45 pm
Location: Greece
Calculators: Casio fx-9860G SD

Re: PrintMini char size

Postby hayzel » Mon Feb 11, 2013 3:38 pm

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.

Senior Member
User avatar
Posts: 113
Joined: Sun Dec 16, 2012 2:59 pm
Calculators: None

Re: PrintMini char size

Postby Casimo » Mon Feb 11, 2013 4:10 pm

This is code for the official SDK.
See this: viewtopic.php?f=20&t=1376
Image

Senior Member
User avatar
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

Postby SimonLothar » Mon Feb 11, 2013 4:39 pm

Casimo wrote:Is it possible to make a faster PrintMini with this syscall or is PrintMini already as fast as possible?
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.
I'll be back!

Senior Member
User avatar
Posts: 113
Joined: Sun Dec 16, 2012 2:59 pm
Calculators: None

Re: PrintMini char size

Postby Casimo » Mon Feb 11, 2013 4:52 pm

Is it possible to overclock the LCD / make it work faster?
Image

Senior Member
User avatar
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

Postby SimonLothar » Tue Feb 12, 2013 4:53 pm

Casimo wrote:Is it possible to overclock the LCD / make it work faster?
I think this is a liquid crystal physics thing. Tuning only possible with money.
I'll be back!

Next

Return to Casio fx-9860 SDK

Who is online

Users browsing this forum: No registered users and 28 guests