Board.KolibriOS.org

Official KolibriOS board
It is currently Sat May 25, 2019 12:34 pm

All times are UTC+03:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sun May 18, 2014 11:42 am 
Offline
User avatar

Joined: Sun May 11, 2014 9:21 pm
Posts: 97
I would like to replace the systemfont tables from within an application.
This way, an application could temporarely get/set the font to any font for any codepage.
A (system)call would be nice, with specification of the table (0/1), and the address of the font bitmap.
Can anyone help with this?

Greetings from Seppe

Я хотел бы заменить systemfont таблицы из приложения.
Таким образом, приложение может Можно временно получить / установить шрифт на любой шрифт для любой кодовой страницей.
Вызов (система) было бы хорошо, с указанием таблицы (0/1), а также адрес растровый шрифт.
Может кто поможет с этим?

Привет из Seppe


Top
   
PostPosted: Mon May 19, 2014 11:23 am 
Offline
Kernel Developer
User avatar

Joined: Fri Aug 14, 2009 1:46 am
Posts: 1328
The kernel loads syfonts at the start-up time from two *.MT binary files located in RD/1/FONTS.
You (or your application) can replace these files, save the image, and reboot.

_________________
Узкий специалист подобен флюсу: полнота его - односторонняя.
Козьма Прутков


Top
   
PostPosted: Sat May 24, 2014 1:56 am 
Offline
User avatar

Joined: Sun May 11, 2014 9:21 pm
Posts: 97
art_zh wrote:
The kernel loads syfonts at the start-up time from two *.MT binary files located in RD/1/FONTS.
You (or your application) can replace these files, save the image, and reboot.

Nice suggestion, thank you, but I can't find those files.
In rd/1/fonts I find file litt.chr. (Whatever that is).
The char.mt and char2.mt files are in the kernel/gui folder.
But they are Fasm included in the kernel by the kernel/gui/font.inc (and not loaded from file).
Can you please locate the code for me that loads the font tables?

_________________
Greetings from Seppe


Top
   
PostPosted: Sat May 24, 2014 3:49 am 
Offline
Kernel Developer

Joined: Sun Feb 10, 2013 12:37 pm
Posts: 2329
seppe wrote:
art_zh wrote:
The kernel loads syfonts at the start-up time from two *.MT binary files located in RD/1/FONTS.
You (or your application) can replace these files, save the image, and reboot.

Nice suggestion, thank you, but I can't find those files.
In rd/1/fonts I find file litt.chr. (Whatever that is).
The char.mt and char2.mt files are in the kernel/gui folder.
But they are Fasm included in the kernel by the kernel/gui/font.inc (and not loaded from file).
Can you please locate the code for me that loads the font tables?

Comrade art_zh has supplied you with outdated information. From SVN revision 2640 two system fonts included to the kernel file KERNEL.MNT. I made ​​this change, because in the case of corrupted kolibri.img the kernel could not display the boot log. Also now boot log can display immediately after the installation of the selected video mode. You need to change the font files in the kernel source, compile and replace the kernel for your experiments.

_________________
Всем чмоки в этом проекте! Засуньте эти 11 лет себе в жопу!


Top
   
PostPosted: Sat May 24, 2014 12:04 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1247
It would be possible to write such a system function.
But:
* Do you have char.mt for additional code pages, or do you plan to create them?
* Would unicode not be a better solution?

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Sat May 24, 2014 5:20 pm 
Offline
User avatar

Joined: Sun May 11, 2014 9:21 pm
Posts: 97
Topic continued on http://board.kolibrios.org/viewtopic.php?f=23&t=2696

_________________
Greetings from Seppe


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited