[Bf-committers] Bitmap Fonts for the Text Editor (how to)
dfelinto at gmail.com
Thu Jul 24 08:28:53 CEST 2008
Quick question: How to create the font files in .cpp that Blender uses ???
I'm trying to implement/enable more options of built-in Fonts for the
Blender Text Editor.
The main reason is that since I've been coding in Python in a big screen, my
eyes are getting tired :(
I need a way to generate .cpp font files like the ones that can be found in
I found the Screen font (bfont.ttf) in the release folder, and I converted
it to bitmap using http://www.ash.webstranka.info/?p=42 and
But I'm not sure if this bitmap font format (suitable for BGE) is the same
kind of bitmap Blender internally uses.
Anyways, using Datatoc I just got a .c file with the bitmap. But according
to BMF_BitmapFont.cpp and BMF_FontData.h I also need a BMF_FontData (e.g.
BMF_font_scr20) - it is a kind of mapping of the characters in the bitmap.
So how can I convert my bitmap or ttf font file in a complete Blender .cpp
font files ???
If someone could help me I will appreciate a lot :) - I didn't find this in
the internet ...
Thanks for you time,
msn: dfelinto at yahoo.com
And a small bug report:
in the readfile.c in the line ... instead of:
is should be "st->lheight=12;" as the default font has 12 of line height ...
unless the idea is to show that the file was saved in a different Blender
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Bf-committers