Jump to content











Photo
- - - - -

How to create a new font with "mkblfont.exe" for gfxmenu?


  • Please log in to reply
8 replies to this topic

#1 GOYfilms

GOYfilms

    Newbie

  • Members
  • 10 posts
  •  
    Spain

Posted 13 December 2010 - 01:48 AM

Anyone know how to do it? I tried a lot of combinations, but none results... :cheers:
are there any tool to convert .TTF fonts into .FNT compatible with gfxmenu?
I tried with the file 16x16.fnt of SuSe ant it works! but I want more :cheers:

#2 ded

ded

    Frequent Member

  • Developer
  • 133 posts

Posted 13 December 2010 - 01:52 PM

Anyone know how to do it? I tried a lot of combinations, but none results...   :cheers:  

Usage: mkblfont [options] fontfile
Build font for boot loader.
-a, --add=first[-last]
Add chars from this range.
-c, --add-charset=charset
Add all chars from this charset.
-f, --font=font_spec
Use this font. Spec format is fontname[option1 option2 ...]
-h, --help
Show this help text.
-l, --line-height=n
Set line height (default: font height).
-p, --font-path=font path
Font path, elements separated by ':'.
-s, --show
Show font info.
-t, --add-text=samplefile
Add all chars used in this file. File must be UTF-8 encoded.
-v, --verbose
Dump font info.


I tried with the file 16x16.fnt of SuSe ant it works! but I want more   :cheers:

From what package you take Mkblfont?
Which version of gfxboot do you use?

Watsh on YouTube

@DED-LEGO@_v3.0_multiBACK+muliFONT_example.avi

Posted Image



==============================

TTF-2-FNT.cmd

@echo off
echo.
echo.
echo.List of system TTF fonts and EEC:
dir %systemroot%\fonts\*.ttf %systemroot%\fonts\*.ttc /w /o:N | find ".tt" /i
set /p .fnt_name=Enter the font name without spaces and extension:
set /p .fnt_size=Font Size:
set /p .fnt_hight=The height of text string:
set /p .fnt_space=Gap width in pixels:
set /p .fnt_plus=The additional spacing between letters:
IF "%.fnt_name%"=="" exit /b
IF "%.fnt_size%"=="" exit /b
IF "%.fnt_space%"=="" exit /b
IF "%.fnt_plus%"=="" exit /b
IF "%.fnt_hight%"=="" exit /b

::: We list the character codes included in our set
::: (Eg, punctuation, Latin, Cyrillic)
echo.
set .fnt_chrs=0x20-0x7e,0x0410-0x045f
mkblfont.exe -v -l %.fnt_size% -a %.fnt_chrs% -f %.fnt_name%:prop=%.fnt_plus%:space_width=%.fnt_space%:size=%.fnt_hight%:nobitmap=1:autohint=1 "%.fnt_name%-sz%.fnt_size%-h%.fnt_hight%_%.fnt_space%+%.fnt_plus%.fnt" >nul

Echo.Done




Edited by ded, 13 December 2010 - 02:24 PM.


#3 GOYfilms

GOYfilms

    Newbie

  • Members
  • 10 posts
  •  
    Spain

Posted 13 December 2010 - 11:34 PM

thanks a lot ded! the script works fine! but I have more questions:
1-why no matters the number that I put in "Font Size:" but only "The height of text string:"?
2- how I can setup the space between lines of the menu?

Thanks again. It's obviously that you are a master on this! :cheers:

#4 ded

ded

    Frequent Member

  • Developer
  • 133 posts

Posted 14 December 2010 - 07:57 AM

thanks a lot ded! the script works fine! but I have more questions:
1-why no matters the number that I put in "Font Size:" but only "The height of text string:"?
2- how I can setup the space between lines of the menu?

Thanks again. It's obviously that you are a master on this! :cheers:

Balance between size and height can help you achieve the desired effect. Compare two versions:

CALIBRI-sz14-h17_5 +2.jpgPosted Image

and CALIBRI-sz22-h12_5 +2.jpg Posted Image

#5 ded

ded

    Frequent Member

  • Developer
  • 133 posts

Posted 14 December 2010 - 08:07 AM

 

2- how I can setup the space between lines of the menu?

Alternative. If you have a source of gfxboot (*. inc-files), you can edit them. It's that simple.  :cheers: Topic on editing scripts is located HERE

PS Gfxboot @DED-LEGO@ has a special parameter "s.menu.slit" for this  :cheers:

Edited by ded, 14 December 2010 - 08:24 AM.


#6 GOYfilms

GOYfilms

    Newbie

  • Members
  • 10 posts
  •  
    Spain

Posted 15 December 2010 - 09:01 PM

I do not use your release Ded, because it seems to me very complicated.
The files of the release that I use contains this files:
16x16.fnt
back.jpg
en.hlp
en.tr
es.hlp
es.tr
gfxboot.cfg
init
lang
languages
pabout.txt
panim.jpg
panim_a.jpg
pback.jpg
phead.jpg
timer_a.jpg

with this, how can I change the space between lines of the menu?

will work editing the .inc-files? Where I can download that .inc files?

Thanks to you I have great progress in my project...

#7 ded

ded

    Frequent Member

  • Developer
  • 133 posts

Posted 16 December 2010 - 05:07 PM

Your gfxboot includes file gfxboot.cfg. So I think that you are working with gfxboot_3.3 This version is a development from the highly respected Bean123 :stretcher: .

Topic can be found at http://reboot.pro/7155/. There is also the source that is necessary for you *. inc-files

Try to compile your gfxboot. If this step is successful, then proceed to editing of the inc-scripts.

I have one request. I'm trying to collect tips inc-scripts in the topic "GFXboot, editing, animation, @ DED-LEGO @ examples *. inc scripts editing". So when you're ready to second step, then place a post in this topic please ;) .

#8 Mr.Tran

Mr.Tran

    Newbie

  • Members
  • 24 posts
  •  
    Vietnam

Posted 12 May 2011 - 12:55 AM

where i can down mkblfont ??????????????

#9 ded

ded

    Frequent Member

  • Developer
  • 133 posts

Posted 12 May 2011 - 06:27 AM

where i can down mkblfont ??????????????

Topic "Configurable gfxmenu": http://reboot.pro/7155/
Author: Bean123
Post #9: http://reboot.pro/71...dpost__p__61137
Package: http://grub4dos.sour...-3.3-custom.zip




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users