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
2020-06-06Fix for T77478: Quiet Conversion Error/WarningHarley Acheson
Quiet warning/error about int and float multiplication. Differential Revision: https://developer.blender.org/D7893 Reviewed by Ray Molenkamp
2020-06-06UI: Ability to Print Bold and ItalicsHarley Acheson
Adds the ability to print text in bold or italics style, synthesized from a single base UI font. Differential Revision: https://developer.blender.org/D7893 Reviewed by Brecht Van Lommel
2020-05-03Cleanup: store BLF buffer size in a variableCampbell Barton
2020-05-03BLF: use 'int' for internal glyph x,y bearingCampbell Barton
These were stored as float but were originally cast from an int and were often cast back to int. Also use int pairs for dimensions values.
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-11GPU: minor changes to support standalone GHOST buildsCampbell Barton
- Move gpuPush/Pop from GPU_draw.h into GPU_state.h as this is for pushing/popping state. - Add 'GPU_STANDALONE' define, to bypass use of user-preferences for theme colors and pixelsize, as well as pbvh init/free functions. Needed to get GHOST tests working again.
2020-02-27Fix T74228, T74246: Strange CharactersGermano Cavalcante
The glyph can come from a different cache.
2020-02-24BLF: Optimize text rendering and cachingGermano Cavalcante
The current code allocates and transfers a lot of memory to the GPU, but only a small portion of this memory is actually used. In addition, the code calls many costly gl operations during the caching process. This commit significantly reduce the amount of memory by allocating and transferring a flat array without pads to the GPU. It also calls as little as possible the gl operations during the cache. This code also simulate a billinear filter `GL_LINEAR` using a 1D texture. **Average drawing time:** |before:|0.00003184 sec |now:|0.00001943 sec |fac:|1.6385156675048407 **5 worst times:** |before:|[0.001075, 0.001433, 0.002143, 0.002915, 0.003242] |now:|[0.00094, 0.000993, 0.001502, 0.002284, 0.002328] Differential Revision: https://developer.blender.org/D6886
2020-02-15Fix T73763: Laggy when zooming a node editor with International Fontsmano-wii
Two main reasons for the lag: - Allocation of memory with transfer to GPU. - BLF_cache_clear(); The (partial) solution is to avoid memory allocating in some setups through the `GPU_texture_clear`. Differential Revision: https://developer.blender.org/D6837
2020-02-15Revert "Fix T73763: Laggy with nodes Editor + International Fonts"Clément Foucault
This reverts commit a21f5ec56245f7f1fbede4aa3c140a582c3a6a1b.
2020-02-14Fix T73763: Laggy with nodes Editor + International Fontsmano-wii
Two main reasons for the lag: - Allocation of memory with transfer to GPU. - BLF_cache_clear(); The memory allocation seems to be unnecessary, so I removed it. Reviewed By: brecht Differential Revision: https://developer.blender.org/D6837
2019-09-14BLF: make library glyph cache handling thread-safeRichard Antalik
Functions that utilize glyph cache should lock and unlock cache by calling `blf_glyph_cache_acquire()` and `blf_glyph_cache_release()`. Function `blf_glyph_cache_acquire()` will create glyph cache, if it doesn't exist. Locking mutex is global and shared by all fonts. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5701
2019-08-14Cleanup: move trailing comments to avoid wrapping codeCampbell Barton
Some statements were split across multiple lines because of their trailing comments. In most cases it's clearer to put the comments above.
2019-07-24Fix T67117: Font thumbnails crash to desktopSebastian Parborg
We were missing a null pointer check for invalid fonts.
2019-04-22Cleanup: style, use braces for blenfontCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-03-26Fix T62887: When searching for fonts, thumbnail display mode will crash BlenderSebastian Parborg
We do not support special color fonts (like colored emoji fonts), so don't crash when trying to create a preview for unsupported fonts. Reviewed By: Brecht Differential Revision: http://developer.blender.org/D4590
2019-03-20Fix T62678: better glyph clipping testJacques Lucke
Reviewers: billreynish, brecht Differential Revision: https://developer.blender.org/D4550
2019-03-17Fix T62678: Wrong text clippingJacques Lucke
There are two issues at play here. First, BLF_width computed a width that was not wide enough to actually hold the text. Second, blf_glyph_calc_rect_test computed an incorrect rect->xmax when the glyph was moved to the left a bit. We ignore the overlap on the left, but the right side should still be adjusted accordingly.
2019-03-14Fix T61300: First letter truncatedJacques Lucke
The main problem was that the character `J` has "negative kerning". It was cut off because it started outside of the clipping rectangle. Reviewers: brecht Differential Revision: https://developer.blender.org/D4513
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2019-01-06Cleanup: add trailing commas to structsCampbell Barton
Needed for clang formatting to workaround bug/limit, see: T53211
2018-12-24Cleanup: First batch of UI messages fixes (typos, final points...).Bastien Montagne
Also contains some code typo fixes (mostly, adtaptative -> adaptive, former is nearly innexistant in English, let's stick to simple valid words ;) ).
2018-08-21Merge branch 'master' into blender2.8Brecht Van Lommel
2018-08-21UI: disable new text hinting from D3201 by default for now.Brecht Van Lommel
This changes the text hinting setting to be an enum with options Auto / None / Slight / Full. The default is Auto which currently disables hinting. The hinting was tested with a new FreeType version, but this is not what is used on the buildbots an official release environment, and the fonts look quite bad because of that. Once FreeType has been upgraded we can change the default. Even then the results are not ideal, perhaps due to missing subpixel positioning and linear color blending support in BLF.
2018-07-31Merge branch 'master' into blender2.8Campbell Barton
2018-07-31BLF: replace global aa pref w/ monochrome flagCampbell Barton
Now disabling anti-aliasing doesn't impact sequencer, render stamp etc.
2018-07-23Fix large font drawing blurriness in a better way.Brecht Van Lommel
GPU_LINEAR is there for shadow font blurring, the real issue was lack of rounding for the batch offset.
2018-07-20Fix incorrect magnification filter for text texture.Brecht Van Lommel
Barely any visible difference, except when drawing big custom text with the Python API.
2018-07-18GWN: Port to GPU module: Replace GWN prefix by GPUClément Foucault
2018-07-10GPUTexture: Refactor of texture creation & new featureClément Foucault
- Texture creation now requires explicit data type. - GPU_texture_add_mipmap enable explicit mipmap upload. - GPU_texture_get_mipmap_size can be used to get the size of a mipmap level of an existing GPUTexture - GPU_texture_read let you read back data from a gpu texture.
2018-06-25Cleanup: code styleCampbell Barton
2018-06-22Blenfont: Fix texture not being initialized in recent refactor.Ray Molenkamp
Caused some gpus to have issues with the font shadows. thanks @fclem for helping tracking this one down.
2018-06-22GLRefactor: Refactor bf_blenfont to use GPUTexture instead of raw GL calls ↵Ray Molenkamp
and types. In an effort to centralize all opengl calls in the codebase, this patch replaces the raw opengl calls in bf_blenfont with GPUTexture so it's no longer depended on opengl headers. reviewer: Brecht Differential Revision: https://developer.blender.org/D3483
2018-06-08Merge branch 'master' into blender2.8Campbell Barton
2018-06-08Cleanup: trailing spaceCampbell Barton
Remove from blender/nodes, collada, blenfont & render.
2018-06-01Merge branch 'master' into blender2.8Campbell Barton
2018-06-01Cleanup: trailing whitespace (comment blocks)Campbell Barton
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-04-26BLF: Fix problem with drawing with fonts with multiple size.fclem
Fix T54838 : Text display glitch w/ fonts at different sizes. This was cause by the cache not being flushed when changing font texture.
2018-04-16Cleanup: indentationCampbell Barton
2018-04-10BLF: Style: Fix bad casts.Clément Foucault
This could have caused overflow issue.
2018-04-10BLF: Fix broken shadows on certain hardware.Clément Foucault
This was due to uninitialized texture space.
2018-04-09BLF: Fix assert when drawing very small chars.Clément Foucault
2018-04-08BLF: Fix problem with bound texture.Clément Foucault
Previous code was assuming that the glyph texture would remain bound to GL_TEXTURE0 until the cache would be drawn. This is not always the case, so better save the texture and rebind it before drawing.
2018-04-08BLF: Opti: More clever sampling for blured glyphs.Clément Foucault
Reduce the number of sampled required for blurring by using filtered texture samples. This changes the result a bit but it is not noticable.
2018-04-08BLF: Opti: Draw only one quad per shadow/blurred glyph.Clément Foucault
This port the Blurring of blf fonts to the final drawing shader. We add a bit of extra padding to each glyph so that jittering the texture coord does not sample the neighbor glyphs.
2018-04-01Merge branch 'master' into blender2.8Campbell Barton
- Undo that changes modes currently asserts, since undo is now screen data. Most likely we will change how object mode and workspaces work since it's not practical/maintainable at the moment. - Removed view_layer from particle settings (wasn't needed and complicated undo).