<div dir="ltr">Hi.<br><br>Quick question: How to create the font files in .cpp that Blender uses ???<br><br>I&#39;m trying to implement/enable more options of built-in Fonts for the Blender Text Editor.<br>The main reason is that since I&#39;ve been coding in Python in a big screen, my eyes are getting tired :(<br>

<br>I need a way to generate .cpp font files like the ones that can be found in /blender/intern/bmfont/intern/.<br>I found the Screen font (bfont.ttf) in the release folder, and I converted it to bitmap using <a href="http://www.ash.webstranka.info/?p=42" target="_blank">http://www.ash.webstranka.info/?p=42</a> and <a href="http://download.blender.org/documentation/oldsite/oldsite.blender3d.org/44_Blender%20tutorial%20Building%20bitmap%20fonts.html">http://download.blender.org/documentation/oldsite/oldsite.blender3d.org/44_Blender%20tutorial%20Building%20bitmap%20fonts.html</a> .<br>
But I&#39;m not sure if this bitmap font format (suitable for BGE) is the same kind of bitmap Blender internally uses.<br><br>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.<br>
<br>So how can I convert my bitmap or ttf font file in a complete Blender .cpp font files ???<br>If someone could help me I will appreciate a lot :) - I didn&#39;t find this in the internet ...<br><br>Thanks for you time,<br>
Dalai Felinto<br><br><a href="http://blenderecia.orgfree.com">http://blenderecia.orgfree.com</a><br>skype: dfelinto<br>msn: <a href="mailto:dfelinto@yahoo.com">dfelinto@yahoo.com</a><br><br><br><br>PS.:<br>And a small bug report:<br>
in the readfile.c in the line ... instead of:<br>&quot;<br>if(st-&gt;font_id&gt;1){<br>&nbsp;&nbsp; st-&gt;font_id=0;<br>&nbsp;&nbsp; st-&gt;lheight=13;<br>&quot;<br>is should be &quot;st-&gt;lheight=12;&quot; as the default font has 12 of line height ... unless the idea is to show that the file was saved in a different Blender version.<br>
</div>