Hey there Very Happy a comment about the icons: You can only add an icon, when you have the source code/ a TI-Basic program (as far as I know). I think adding icons to compiled programs would mix up pointers...

However, you can change/overwrite any Icon: For compiled programs this also allows you to use all 256 colors, because the icons are stored in sprite format. Go to import, prgm, asm, programName; then set type to sprite [graph],[y=] and search for the icon (The program should find it by itself. Index 8 or so); export afterwards to the same location where you imported the Icon.

By the way: you don't need to export your icon/sprite/font/... to a string in order to paste it into your sourcecode, just add an empty string "" into the code, then export from Designer directly into the line: [2nd], export, prgm, basic, select the source program, use prev [zoom] and next [trace] to find the empty string, [enter]. Designer will automatically replace the empty string with the data.

And have a backup every once in a while, just in case anything goes wrong Wink
Thank you all! The font works; is there a way to scale it up to make it more readable? Probably something in ICE, but idk where to find it.

EDIT: I just found it in the commands page. I should be good now Good Idea
StephenM wrote:
GravewalkerCEsAll wrote:
Ok, so I all of a sudden figured pretty much everything out, and I love Celtic and I love Designer. One last question. How do you use a font? Thank you all SO MUCH for your support.


Now, fonts (at least this specific format) are not something you can use in Celtic, but rather in ICE or C. I'll write code in ICE for the sake of simplicity.

To load a new font, use:

Code:
det(23,POINTER
i// to get the pointer, you can either embed the font in your program using the Data() command, or by reading from an appvar (don't forget to close it afterwards!).


To set the font spacing:

Code:
det(24,POINTER
i// this can also be exported via Designer.


I hope this helps! Very Happy


You can also write this:

Code:
det(23,"00242400023C0000") // in ICE, a string returns a pointer to its data

det(14,0) // draw the character :)
  
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 3 of 3
» All times are UTC - 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