Alvajoy123 wrote:
calclover2514 wrote:
Alvajoy123 wrote:
Question
Does the font library only use .fnt files or it uses other types of font files such as .ttf?
why does the font library only use .fnt files?

It supports only .fnt files and .fon files.
A .fnt file is a single bitmap font, meaning that it contains the exact pixel data required to display the font.
A .fon is a collection of multiple .fnt files that can contain multiple font styles/sizes similar to .ttf, but still contains bitmap data.
A .ttf file contains vector data, meaning that instead of exact bitmap data, it contains the shape of each letter in a way that can be scaled (like a collection of .svg files), as well as anti-aliasing metadata. This would be very big on-calc, and rendering .ttf fonts at a decent speed would also be very hard.


That explains a lot. I still need to know how to convert .fon to appvars as for .fnt it works fines.

Question
I need help with os_GetAnsData(); also known as os_RclAns();. This function returns a pointer (PTR) to where Ans data. *correct me if am wrong*. The ptr is a uint8_t. I want to get the chars from it the pointer.

How do I get the data (char) from the given pointer?


Mateo Helped me out. Thanks, Mateo.

Question:
I want to read appvars only with header(appvar data that starts with) "SCR.".
How do I make and read headers for appvars?
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 2 of 2
» All times are GMT - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement