Author Topic: Accessing the Nspire Fonts  (Read 5678 times)

0 Members and 1 Guest are viewing this topic.

Offline bsl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 157
  • Rating: +14/-0
    • View Profile
Accessing the Nspire Fonts
« on: August 18, 2011, 01:41:33 am »
Up till now, to print text on the Nspire screen required you to bring
your own Font table into your code. This is not always convenient.
The text is small, but a simple OS call: disp_str(char*, int *x, int y) prints a string where you want it
without bringing in extra screen routines and a Font table.
Maybe this can be used in the Ndless console program ? :)

Here is a simple example I found for Ndless 1.7 and  2.0.1.60

 
« Last Edit: December 27, 2013, 10:07:06 pm by bsl »

Offline MasterGeek

  • LV2 Member (Next: 40)
  • **
  • Posts: 24
  • Rating: +0/-0
    • View Profile
Re: Accessing the Nspire Fonts
« Reply #1 on: April 15, 2012, 01:36:12 pm »
Will this work for Ndless3 and the Ti-Nspire CX?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Accessing the Nspire Fonts
« Reply #2 on: April 15, 2012, 01:50:05 pm »
Assuming it was not updated for it (can Bsl confirm?) then nope, as the addresses of stuff (I believe it was the memory addresses) have changed over other OS versions.

Offline bsl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 157
  • Rating: +14/-0
    • View Profile
Re: Accessing the Nspire Fonts
« Reply #3 on: April 16, 2012, 07:58:28 pm »
Ndless3.1 :
{0x100b30c4, 0x100b3384, 0x100b275C , 0x100b2a44 }
« Last Edit: April 18, 2012, 01:37:10 am by bsl »

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Accessing the Nspire Fonts
« Reply #4 on: April 29, 2012, 07:38:59 pm »
Very nice!  Great work bsl! :)


Offline bsl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 157
  • Rating: +14/-0
    • View Profile
Re: Accessing the Nspire Fonts
« Reply #5 on: December 27, 2013, 08:38:15 pm »
Finally, the latest version of Ndless supports native fonts.
Not only fonts, but other graphics too.
Download the latest version for more info.
Here is a shot of the ngc demo

 
« Last Edit: December 27, 2013, 08:42:43 pm by bsl »