Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-04-17code cleanup: remove/comment some unused code.Campbell Barton
2012-03-18spelling cleanupCampbell Barton
2012-03-12Style cleanup in blenfont (spaces, C++ comments, etc.).Bastien Montagne
2011-11-04cleanup some BLF macros and dont over-alloc BGE's PyObjectPlus when setting ↵Campbell Barton
strings (better change then the one I made recently).
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-21replace BLF's blf_utf8_next() with BLI_str_utf8_as_unicode_step(),Campbell Barton
also fixed some spelling errors.
2011-10-21- minor edits to font drawing/utf8, was needlessly casting int/unsigned int.Campbell Barton
- also ifdef'd out more smoke function when the modifiers disabled.
2011-10-15spelling corrections in comments and quiet warningCampbell Barton
2011-09-22clear up some warnings.Campbell Barton
2011-09-19Blenfont: fix use incorrect clear of ascii glyph cache, leading to crashBrecht Van Lommel
when toggling use antialising user preference. Also fix some other use of uninitialized memory found by valgrind.
2011-09-18replace strnlen with BLI_strnlen & some style changes.Campbell Barton
2011-09-18blf - further shrink drawing functions & some style changes.Campbell Barton
2011-09-18blf code - no functional changes.Campbell Barton
- remove saniy checks from blf_font.c, the callers now check instead. - move duplicate code into defines (may move into static functions). - move kerning checks into const values set at the start of the function, rather then checking on every character.
2011-09-14minor edits to ascii draw function, unused var warning.Campbell Barton
2011-09-12fix for changing font sizes with recent utf8 speedupCampbell Barton
2011-09-11speedup font drawing:Campbell Barton
for ascii characters in a utf8 string use glyph_ascii_table lookup rather than call blf_glyph_search(), otherwise fallback to blf_utf8_next() and blf_glyph_search().
2011-08-31fix [#28430] Image with Stampinfo does not get saved correctly with alphaCampbell Barton
2011-04-30fix [#27221] stamp text bug in lower linesCampbell Barton
2011-02-27doxygen: blender/blenfont tagged.Nathan Letwory
2011-02-23doxygen: prevent GPL license block from being parsed as doxygen comment.Nathan Letwory
2011-02-19Rename global_ft_lib and make it static.Diego Borghetti
Remove the XXX code from blf_glyph.c and use the pointer inside the FontBLF struct. If still have problem, let me know.
2011-02-18Bugfix #26135Ton Roosendaal
User Preferences Using "no AA font" crashed, caused by commit to make static variables. However, how this was ever meant to work... using such globals has to be treated carefully. Fixed for now with XXX warning for Diego :) Thanks to reporter Susanne H. to point at the right code!
2011-02-14more vars made staticCampbell Barton
2011-01-08remove unused code & variables.Campbell Barton
2010-12-10Change the BLF_aspect function to handle 3d text.Diego Borghetti
This is need to properly handle 3d text (dalai work on GE), before the BLF_aspect only take one argument, and the result was a call to: glScalef(aspect, aspect, 1.0) Now the three value are store in the font (x, y and z) and also need to be enable using BLF_enable(BLF_ASPECT). By default all the code that don't have BLF_ASPECT enable work with a scale of 1.0 (so nothing change to the current UI). I also remove all the call of BLF_aspect(fontid, 1.0) found in the editors, because is disable by default, so no need any more. Campbell the only thing to check is the python api, right now I modify the api to from: BLF_aspect(fontid, aspect) to: BLF_aspect(fontid, aspect, aspect, 1.0) This is to avoid break the api, but now you need add the BLF_ASPECT option to the function py_blf_enable and in some point change py_blf_aspect to take 3 arguments.
2010-12-09Add the possibility to set a 4x4 matrix to be used on blf.Diego Borghetti
This option allow the user to set a 4x4 matrix to be multiplied before draw the text, for example: double *m; /* Get the matrix or build it! */ BLF_matrix(m); BLF_enable(BLF_MATRIX); /* set color, size, etc and draw! */ BLF_disable(BLF_MATRIX); You don't need the last line (disable), but remember that if you use the font to draw in any other place, the matrix will be used!. The GL code is: glPushMatrix(); glMultMatrixd(m); glTranslatef(); glScalef(); glRotatef(); glPopMatrix(); Let's Dalai test this!!! :D
2010-11-11fix for building, also use const char in more places.Campbell Barton
2010-11-11BLF_draw functions take an extra length argument, so the console drawing ↵Campbell Barton
doenst need to swap in NULL chars to draw word wrapping.
2010-10-31Minor speedups for 3D view text drawing ~10-15% improved frame-rate with ↵Campbell Barton
particle display. - ascii text drawing functions, slightly faster since they dont have to do hash lookups & utf8 conversions for each char. - used ascii drawing functions for the view3d's number display. - each text item was using fixed 128 chars, now only allocate the string length needed.
2010-09-14fix for own bug for font buffer drawing (only effected the bottom line of ↵Campbell Barton
the stamp)
2010-09-10remove redundant buffer character positioning code & remove attr keyword ↵Campbell Barton
argument from property definitions.
2010-09-10bugfix [#23607] Render Stamp, incorrect apostrophe Y position.Campbell Barton
2010-08-08remove unused includesCampbell Barton
2010-04-04added negative bounds checks so drawing text into a buffer wont crash.Campbell Barton
2010-03-28fix for writing out of buffer bounds when drawing to a buffer (most obvious ↵Campbell Barton
with new grid type but could probably crash with stamp render option too)
2010-03-21remove includes that arnt neededCampbell Barton
2010-03-21Fix syntax for ID keyword.Guillermo S. Romero
2010-03-21drawing text in a byte buffer wasnt working (probably never tested since ↵Campbell Barton
float buffer is used for rendering)
2010-02-12correct fsf addressCampbell Barton
2009-11-10Math LibBrecht Van Lommel
* Convert all code to use new functions. * Branch maintainers may want to skip this commit, and run this conversion script instead, if they use a lot of math functions in new code: http://www.pasteall.org/9052/python
2009-09-22Fix #19427, problem in blenfont not computing the width of text correct,Brecht Van Lommel
particularly text including spaces. This gave some problems with placing the cursor and selection, and clipping text inside buttons.
2009-09-14use static functions where possible for some local functions.Campbell Barton
2009-08-20Add unsigned char buffer to BLF_draw_buffer and update makefiles for lzo and ↵Diego Borghetti
lzma. I rename the original makefile of lzo (Makefile.bak) and a new one. Also four new option for user-def.mk: WITH_LZO, default true WITH_LZMA, default true NAN_LZO, default extern/lzo NAN_LZMA, default extern/lzma It's easy add support for system libs (using lzo and lzma from OS) but I don't know if it have much sense. Note that I can't test the "unsigned char" buffer because the OGL animation is not working (right ?), but is the same code that for float also the new Makefile work fine here (Linux), but maybe need some tweak on other OS.
2009-08-18Stamp info back only for float buffer. (next commit add unsigned char).Diego Borghetti
A couple of new functions: BLF_width_and_height - Merge of BLF_width and BLF_height in one call to avoid freetype2 stuff. BLF_buffer - Set the buffer, size and number of channel. BLF_buffer_col - Set the text color (the alpha is not used right now). BLF_draw_buffer - Draw the text in the current buffer. Also tweak a little the boundbox and draw function to avoid access the freetype2 and use the cache info. By default the font size is 12, the UI still need work to allow change the font and size.
2009-08-07Cleanup a little to add "draw to buffer" (and bring back stamp).Diego Borghetti
2009-08-07Remove bitmap mode from blenfont, only draw with textures.Diego Borghetti
As Joe point on a previous mail, glBitmap don't work nice on all cards and also some of the things that we can do with texture are hard (or need that blender check the font mode) to implement.
2009-07-122.5: Couple of small fun featuresBrecht Van Lommel
* Text window font size now supports full range 8-32, instead of just 12 and 15. I added BLF_fixed_width to get the character width of a fixed size font. * Buttons do undo push on change again. * Animated/Keyframe/Driver colors are now themable, with blend value to blend with original color. Set this to 0.5 now to give colors less constrast. * Fix tooltip popping up with RMB menu open, and missing redraw. * Autokeyframe now works for buttons. * Driver expressions can be edited in place in a button now. (still some refresh issues). * Also made python driver default for the Add Driver function in the RMB button. This way you don't have to open a Graph editor if you just want to type an expression. Also, the default expression then is the current value. * Tooltips now show some extra info, not sure what is good to have, but currently I added: * Shortcut key for operator buttons. * Python struct & property name for RNA buttons. * Expression for driven values. * Value for text/search/pointer buttons.
2009-07-11Allow the user set which style to use for the kerning value.Diego Borghetti
This are freetype2 options: Unfitted - Scaled but un-grid-fitted kerning distances Default - Scaled and grid-fitted kerning distances We always use Unfitted, but the "Default" style give better result here, so please test and if nobody complain we can set this style as the default.
2009-07-11Yes!! a nice font again!!Diego Borghetti
Matt, I found the problem in one of my previous commit, so I revert all my changes and now the font look good again. Also remove all the options (kerning, overlap and user kerning), I want to make this a little better.
2009-06-23New Style option: OverlapDiego Borghetti
If this option is enable, the blenfont check for overlap characters, like one of my previous commit but now it's optional and disable by default. (This fix the "Fi" or other case when the characters are too close) Enable/disable from: Outliner -> User Preferences -> Styles -> Panel Font -> Overlap (also for other styles, Group Label, Widget, Widget Label)