Author Topic: question on alt os  (Read 2310 times)

0 Members and 1 Guest are viewing this topic.

Offline infidelity

  • Jr. Member
  • **
  • Posts: 92
  • Karma: +0/-0
    • View Profile
question on alt os
« on: July 29, 2015, 09:10 PM »
Is there a method to change the font used for all text within the alt is? I'm able to change the background, but would like to change the font.

Thank you. :-)

Offline saturnu

  • ヽ(^o^)丿
  • Hero Member
  • *****
  • Posts: 1182
  • Karma: +156/-0
    • View Profile
    • :D
Re: question on alt os
« Reply #1 on: July 29, 2015, 09:22 PM »
basically you need to edit the font.h of libdragon and than recompile it again.

Offline infidelity

  • Jr. Member
  • **
  • Posts: 92
  • Karma: +0/-0
    • View Profile
Re: question on alt os
« Reply #2 on: July 30, 2015, 01:06 AM »
That was all a foreign language to me, lol. No one would happen to have different "font.h" files with different fonts?

Offline saturnu

  • ヽ(^o^)丿
  • Hero Member
  • *****
  • Posts: 1182
  • Karma: +156/-0
    • View Profile
    • :D
Re: question on alt os
« Reply #3 on: July 30, 2015, 01:14 AM »
the font.h is a c header file and the font itself is a big array. :D

i used this editor to pixel the 8x8 font
https://www.min.at/prinz/o/software/pixelfont/

Code: [Select]
[i]The current version is 2.7.0 PixelFontEdit-2.7.zip
New function to export a font as a C header include file.[/i]

static unsigned char __font_data[2048] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   // Char 000 (.)
[...]
};