Register

Font in 9860 gii SDK programs

Learn how to program. Code snippets for creating sprites etc. Submit your own or use those of others.
Junior Member
Posts: 5
Joined: Mon May 14, 2018 7:27 pm
Calculators: Casio Afx 2.0, Casio fx-9860GII SD Power Graphic 2

Font in 9860 gii SDK programs

Postby saeedgolabli » Tue Sep 18, 2018 10:04 pm

Hi
Thank you very much if you answer my question.
How can I write an application that is in the "SDK" environment with the output of Persian?
I really need this very much. Please help me.
Many thanks.

I use the calculator 9860 gii sd

Member
User avatar
Posts: 39
Joined: Fri Aug 21, 2015 11:54 am
Location: France
Calculators: Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860GII, Casio fx-CG50

Re: Font in 9860 gii SDK programs

Postby lephe » Wed Sep 19, 2018 12:16 pm

Hi, :)

All characters supported by the FONTCHARACTER encoding of Print() can be found in the following manual:

Character Set.pdf

You can insert them in a C string by using an hexadecimal escape, for instance "\xe5\x55" (prints "ϕ").

Junior Member
Posts: 4
Joined: Fri Sep 20, 2013 1:38 am
Calculators: Casio fx-9860GII

Re: Font in 9860 gii SDK programs

Postby lentulion » Wed Sep 19, 2018 12:29 pm

Thing, that You must build the persian character. All You need.

These characters, all are for a text editor?? or are for some message?? into an specific ADD-IN.

Due to the high speed of the fx-9860 CPU's, build and print your own character is a good idea.

Junior Member
Posts: 5
Joined: Mon May 14, 2018 7:27 pm
Calculators: Casio Afx 2.0, Casio fx-9860GII SD Power Graphic 2

Re: Font in 9860 gii SDK programs

Postby saeedgolabli » Fri Sep 21, 2018 8:38 am

lephe and lentulion :::
Thank you dear friends
I want this for a Add-in program.
I want to display messages in the program. For example, in Persian, display "Enter number" or provide explanations about the program's responses in Persian.
If it can be used for input numbers from the Persian font, it is perfect and perfect.
ممنونم که وقت گذاشتید.. :)

Junior Member
Posts: 5
Joined: Mon May 14, 2018 7:27 pm
Calculators: Casio Afx 2.0, Casio fx-9860GII SD Power Graphic 2

Re: Font in 9860 gii SDK programs

Postby saeedgolabli » Fri Sep 21, 2018 10:50 am

Does anyone have any idea or plan? : :geek: :clap:

Member
User avatar
Posts: 39
Joined: Fri Aug 21, 2015 11:54 am
Location: France
Calculators: Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860GII, Casio fx-CG50

Re: Font in 9860 gii SDK programs

Postby lephe » Fri Sep 21, 2018 4:45 pm

So as I thought, there is no Persian in FONTCHARACTER. >_<

I guess you have no choice but to design the font yourself; possibly you can re-use an existing one if you find any with a suitable character size.

Then you need to draw the characters in the VRAM by hand. Do you know how to write pixels to the VRAM?

Junior Member
Posts: 5
Joined: Mon May 14, 2018 7:27 pm
Calculators: Casio Afx 2.0, Casio fx-9860GII SD Power Graphic 2

Re: Font in 9860 gii SDK programs

Postby saeedgolabli » Sat Sep 22, 2018 12:31 am

lephe wrote:So as I thought, there is no Persian in FONTCHARACTER. >_<

I guess you have no choice but to design the font yourself; possibly you can re-use an existing one if you find any with a suitable character size.

Then you need to draw the characters in the VRAM by hand. Do you know how to write pixels to the VRAM?


Unfortunately not ...
My knowledge of this field is very small.
just .. For example, for each letter, a pixel block is 8 * 8. And with the command that the point draws, each of the letters is drawn in each block.
But how do I apply it to my program?
What came to my mind is to define a function for each block of 8 × 8 characters. Then, to display a word or sentence, call a number of blocks and display it with appropriate library functions.
Is this a good solution?

Junior Member
Posts: 4
Joined: Fri Sep 20, 2013 1:38 am
Calculators: Casio fx-9860GII

Re: Font in 9860 gii SDK programs

Postby lentulion » Sun Sep 23, 2018 9:35 am

Due to the no-existiyng of persian characters into the fx-9860 printable set, I can suggested:

1. The ASCII character set contains 255 symbols. Maybe less 188 are printable on the calc's display.

2. Every ASSCI character has its own number. If You can build a minimun persian character set (I guess, it's seemed to the arabic character set), this can be organized from minor to max. And, this way, every persian character would be indexed by numbers.

3. To increment the speed of your message printing into your ADD-IN, You can CALL every persian character directly rigth from a POINTER to a function. All the persian characters You would building maybe indexed into a pointer matrix to integers or void functions.

Junior Member
Posts: 5
Joined: Mon May 14, 2018 7:27 pm
Calculators: Casio Afx 2.0, Casio fx-9860GII SD Power Graphic 2

Re: Font in 9860 gii SDK programs

Postby saeedgolabli » Sat Oct 06, 2018 8:44 pm

Thank you for your opinion and guidance "lentulion". :thumbup: :)
I used the guidance of you and other friends.
Thank you for guiding me. :thumbup:

Return to Tutorials & Code Snippets

Who is online

Users browsing this forum: No registered users and 1 guest