Thenk you Sheep!<br>We'll try it soon and i'll make a report here.<br><br><div><span class="gmail_quote">On 8/16/07, <b class="gmail_sendername">sheep</b> <<a href="mailto:sheepzilla@gmail.com">sheepzilla@gmail.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi, I talked with you a little on IRC yesterday.<br><br>The attached patch will let you use any font you like in the text
<br>editor, by selecting it as the ui font, but it will be very buggy unless<br>the font is a fixed width one. I don't have any linux graphics drivers<br>that work at the moment, so I won't compile a binary, I don't think
<br>you'd find compiling on Linux very difficult though.<br><br><br>James<br><br><br>Jury Azovtzev wrote:<br>><br>> I'm a russian blender community member and we are looking for medium<br>> to solve some problems with russian letter in blender.
<br>><br>> We have problems with russian letter in Python cripting Window<br>> (strange chars not russian, nor any other language i know).<br>> There is a problem with russian letter in Browse Windows. All russian
<br>> folders and files unreadable.<br>> But when you make 3D Text with right font - all is greate - you get<br>> Cyrilic text in rendered image.<br>><br>> We tryed to load font with russian letter as UI Font - it dosn't
<br>> help. People says there is an offset of letter Blender Use ans Right<br>> Letters it should be. Tests was made in Ubuntu Linux, Windows XP,<br>> Gentoo.<br>><br>> Is it any way to solve the problem?
<br>> Does someone support this part of the project?<br>> Is it any documentation about this part of the Blender?<br>><br>><br>><br>> --<br>> With best regards.<br>> Azovtzev Jury<br>><br>> ForceTeam NNLUG
<br>> <a href="http://www.forceteam.nnov.ru">www.forceteam.nnov.ru</a> <<a href="http://www.forceteam.nnov.ru">http://www.forceteam.nnov.ru</a>><br>><br>><br>> ------------------------------------------------------------------------
<br>><br>> _______________________________________________<br>> Bf-committers mailing list<br>> <a href="mailto:Bf-committers@blender.org">Bf-committers@blender.org</a><br>> <a href="http://lists.blender.org/mailman/listinfo/bf-committers">
http://lists.blender.org/mailman/listinfo/bf-committers</a><br>><br><br><br>Index: source/blender/src/drawtext.c<br>===================================================================<br>--- source/blender/src/drawtext.c (revision 11622)
<br>+++ source/blender/src/drawtext.c (working copy)<br>@@ -76,6 +76,7 @@<br> #include "BIF_space.h"<br> #include "BIF_mywindow.h"<br> #include "BIF_resources.h"<br>+#include "BIF_language.h"
<br><br> #include "BSE_filesel.h"<br><br>@@ -121,7 +122,7 @@<br> }<br><br> static int spacetext_get_fontwidth(SpaceText *st) {<br>- return BMF_GetCharacterWidth(spacetext_get_font(st), ' ');<br>+ return BIF_GetStringWidth(spacetext_get_font(st), " ", 0);
<br> }<br><br> static char *temp_char_buf= NULL;<br>@@ -580,12 +581,14 @@<br> break;<br> }<br> glRasterPos2i(x, y);
<br>- BMF_DrawString(spacetext_get_font(st), out);<br>- x = x+BMF_GetStringWidth(spacetext_get_font(st), out);<br>+ BIF_RasterPos(x, y);
<br>+ BIF_DrawString(spacetext_get_font(st), out, 0);<br>+ x = x+BIF_GetStringWidth(spacetext_get_font(st), out, 0);<br> }<br> } else {
<br> glRasterPos2i(x, y);<br>- BMF_DrawString(spacetext_get_font(st), in);<br>+ BIF_RasterPos(x, y);<br>+ BIF_DrawString(spacetext_get_font(st), in, 0);
<br> }<br> } else {<br> while (w-- && *acc++ < maxwidth) {<br>@@ -985,11 +988,13 @@<br> if(((float)(i + linecount + 1)/10000.0) < 1.0) {<br> sprintf(linenr, "%4d", i + linecount + 1);
<br> glRasterPos2i(TXT_OFFSET - 7, curarea->winy-st->lheight*(i+1));<br>+ BIF_RasterPos(TXT_OFFSET - 7, curarea->winy-st->lheight*(i+1));<br> } else {
<br> sprintf(linenr, "%5d", i + linecount + 1);<br> glRasterPos2i(TXT_OFFSET - 11, curarea->winy-st->lheight*(i+1));<br>+ BIF_RasterPos(TXT_OFFSET - 11, curarea->winy-st->lheight*(i+1));
<br> }<br>- BMF_DrawString(spacetext_get_font(st), linenr);<br>+ BIF_DrawString(spacetext_get_font(st), linenr, 0);<br> text_draw(st, tmp->line, st->left, 0, 1, TXT_OFFSET + TEXTXLOC, curarea->winy-st->lheight*(i+1), tmp->format);
<br> } else<br> text_draw(st, tmp->line, st->left, 0, 1, TXT_OFFSET, curarea->winy-st->lheight*(i+1), tmp->format);<br><br>_______________________________________________
<br>Bf-committers mailing list<br><a href="mailto:Bf-committers@blender.org">Bf-committers@blender.org</a><br><a href="http://lists.blender.org/mailman/listinfo/bf-committers">http://lists.blender.org/mailman/listinfo/bf-committers
</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>With best regards.<br>Azovtzev Jury<br><br>ForceTeam NNLUG<br><a href="http://www.forceteam.nnov.ru">www.forceteam.nnov.ru</a>