GLBasic forum

Main forum => GLBasic - en => Topic started by: MrPlow on 2019-Apr-26

Title: For a new project...
Post by: MrPlow on 2019-Apr-26
I am looking to find the best way to have multicoloured fonts (programmically) in GLB without the need for multiple bitmap fonts.

My own idea is create the font like 8-bit character set or UDGs and re-colour as needed.

Anyone else try this or have an idea or tricks up-their-sleeves of how to go about?

Title: Re: For a new project...
Post by: Schranz0r on 2019-Apr-26
White Fontatlas and draw parts of it with polyvector and the color you need.
You can rescale and coloring it that way.
Title: Re: For a new project...
Post by: dreamerman on 2019-Apr-26
I'm doing it as Schranzor described, additionally with PolyVector you have more freedom and can parse special chars differently - for multiline rendering and so on..
Title: Re: For a new project...
Post by: Qedo on 2019-Apr-27
MrPlow, see if the program works for you (maybe with some changes)

http://www.glbasic.com/forum/index.php?topic=9108.msg82633#msg82633

Title: Re: For a new project...
Post by: MrPlow on 2019-Apr-27
Thanks guys! I will check that out!
Title: Re: For a new project...
Post by: spacefractal on 2019-May-01
im did a rutine using bitmap that can scaling in any site. im a that used a mac program to create those font.

Im thinks its was this thread:
http://www.glbasic.com/forum/index.php?topic=9981.0

im have allways used my own font system, so im could uses scaling.
Title: Re: For a new project...
Post by: Kitty Hello on 2019-May-02
V16 has true type fonts, and you can set a color, IIRC. However it is quite slow in comparison to bitmap fonts. I'll have to pre-render a bitmap when you load a TTF font.