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
2021-08-16Cleanup: rename kerning table to ascii_tableCampbell Barton
It wasn't obvious this was only for ASCII characters.
2021-08-16BLF: use fast ASCII kerning for word-wrap calculationsCampbell Barton
While this wasn't a bottleneck, using the fast version of this function removes some duplicate code that doesn't use the look-up table.
2021-08-16Cleanup: replace macros with inline functions for font drawingCampbell Barton
Also assert blf_font_ensure_ascii_kerning has been called in blf_kerning_step_fast.
2021-08-14BLF: Do Not Preload Glyph CacheHarley Acheson
This patch turns off the preloading of ascii glyphs and instead caches each glyph the first time it is actually used. See D12215 for much more detail. Differential Revision: https://developer.blender.org/D12215 Reviewed by Campbell Barton
2021-08-14BLF Cleanup: Size Defines, Comments, etcHarley Acheson
This patch makes some non-functional changes to BLF code. Some size defines added, comments changed, simplification of macro BLF_KERNING_VARS. See D12200 for more details. Differential Revision: https://developer.blender.org/D12200 Reviewed by Campbell Barton
2021-08-11BLF: Do Not Cache Unused Rendered GlyphsHarley Acheson
The loading of a font size or style renders bitmaps of the characters 0-255 and stores them in a cache. But glyphs 128-255 in this cache are not accessible. What used to be ansi high-bit characters are now multi- byte UTF-8 sequences. Therefore this patch reduces the glyph_ascii_table size to 128 and only caches characters 32-127, the visible portion of ASCII, which greatly reduces the time to load a font. See D12189 for more details. Differential Revision: https://developer.blender.org/D12189 Reviewed by Campbell Barton
2021-08-04VSE: Allow Wingdings and Symbol FontsHarley Acheson
This patch makes us less restrictive on the allowed types of FreeType font character maps we allow, rather than primarily unicode-only. This allows us to use some legacy, symbol, specialty, and proprietary fonts like Wingdings. Note we were a little less restrictive with vfonts, used for 3D Text Objects, so this patch primarily helps VSE. See D12124 for details and examples. Differential Revision: https://developer.blender.org/D12124 Reviewed by Brecht Van Lommel
2021-07-28Fix T75028: Improved Font Names in File ManagerHarley Acheson
When viewing font files in the File Manager, this patch uses the font's family and style names to show the same type of string shown to users in operating system lists. For example "Book Antiqua Regular" instead of "BKANT.ttf" see D12020 for details and examples. Differential Revision: https://developer.blender.org/D12020 Reviewed by Campbell Barton and Julian Eisel
2021-07-27Cleanup: comment spelling & punctuationYimingWu
2021-07-03Cleanup: consistent use of tags: NOTE/TODO/FIXME/XXXCampbell Barton
Also use doxy style function reference `#` prefix chars when referencing identifiers.
2021-06-26Cleanup: full sentences in comments, improve comment formattingCampbell Barton
2021-06-24Cleanup: comment blocks, trailing space in commentsCampbell Barton
2021-06-07Fix T77651: Black screen on Blender startup on ChromeOSGermano Cavalcante
Apparently `textureSize` doesn't work with `sampler1DArray` on this OS. Thanks to @dave1853 for finding the source of the problem.
2021-05-31Cleanup: Replace fseek() calls with BLI_fseek()Harley Acheson
The fseek() function on Windows only accepts a 32-bit long offset argument. Because of this we have our own version, BLI_fseek(), which will use 64-bit _fseeki64() on Windows. This patch just replaces some fseek() calls with BLI_fseek(). Differential Revision: https://developer.blender.org/D11430 Reviewed by Brecht Van Lommel
2021-04-22Fix T87337: Text strip draws white outlineRichard Antalik
Math for drawing font over byte buffer was incorrect. Effect can be seen when target buffer is fully black and transparent - this results in font color being effectively premultiplied, which causes problems when image is composited further. Use `blend_color_mix_byte()` and `blend_color_mix_float()` for blending. Reviewed By: sergey Differential Revision: https://developer.blender.org/D11035
2021-02-17Cleanup: Abbreviate enums with 'UNSIGNED_' in the nameGermano Cavalcante
2021-02-17Cleanup: spellingCampbell Barton
2021-02-14Cleanup: spellingCampbell Barton
2020-12-15Fix (studio-reported) broken handling of relative font paths.Bastien Montagne
`blf_dir_search` BLF util would not properly handle relative fonts not found in pre-defined 'system fonts' directoriesi stored in `global_font_dir` global variable. Now it rebases relative paths to current .blend file location as expected. Note: the fact that VSE is setting font ptaths relative by default is probably not actually desired, but this is another issue really. See `BKE_sequencer_text_font_load` code.
2020-10-26Cleanup: spellingCampbell Barton
2020-10-22Cleanup: centralize BLF default functions in the headerCampbell Barton
2020-10-22Cleanup: split BLF default into own fileCampbell Barton
This avoids accidents using user-preferences in the main BLF API, which could cause preferences to be used unintentionally (such as stamping into renders or creating generated images). As well as uses of BLF when preferences aren't loaded such as animation playback.
2020-10-21Fix for T81757: Incorrect Overlay Line HeightHarley Acheson
Fixes error in determining 3DView Overlay Line Height. Do not base on current default font height. Differential Revision: https://developer.blender.org/D9288 Reviewed by Campbell Barton
2020-10-12UI: Remove Hard-coded Default Font SizeHarley Acheson
Default text output routines (which do not specify a size) will now use Text Style point size. Differential Revision: https://developer.blender.org/D9107 Reviewed by Brecht Van Lommel
2020-10-12Fix T80599 Blender Cloud folder text on the screen very smallClément Foucault
This was caused by BLF conflicting with BGL api change.
2020-09-12Cleanup: Remove GLEW dependencies outside of GL moduleClément Foucault
2020-09-09Cleanup: reduce variable scopeJacques Lucke
2020-09-07GPU: Rename gpu_extensions to gpu_capabilitiesClément Foucault
This makes more sense as this module has more to it than just GL extensions.
2020-09-05GPUTexture: Change texture creation APIClément Foucault
This is to modernize the API: - Add meaningful name to all textures (except DRW textures). - Remove unused err_out argument: only used for offscreen python. - Add mipmap count to creation functions for future changes. - Clarify the data usage in creation functions. This is a cleanup commit, there is no functional change. # Conflicts: # source/blender/gpu/GPU_texture.h
2020-09-05Cleanup: GPUTexture: Remove use of GPU_texture_create_nDClément Foucault
Use creation + update function instead.
2020-09-05GPUTexture: Remove bind to edit callsClément Foucault
This is going to be unecessary after the GPU opengl texture backend refactor. For now add a save/restore mechanism to leave the state untouched. Also remove some calls where the caller would bind to particular binding point and set the shader uniform.
2020-08-18Cleanup: GPUState: remove double GPU_blend callsClément Foucault
2020-08-18GPUState: GPU_blend final API renamingClément Foucault
We now use GPU_blend for enabling / disabling blending and explicitly set the blend equation.
2020-08-18Cleanup: GPUState: Replace blend func separate by enumClément Foucault
2020-08-13Cleanup: GPU: Remove Batch vao cache resetClément Foucault
This is done at drawtime automatically.
2020-08-07Cleanup: declare arrays arrays where possibleCampbell Barton
2020-08-07Merge branch 'blender-v2.90-release' into masterJacques Lucke
2020-08-07Code Style: use "#pragma once" in source directoryJacques Lucke
This replaces header include guards with `#pragma once`. A couple of include guards are not removed yet (e.g. `__RNA_TYPES_H__`), because they are used in other places. This patch has been generated by P1561 followed by `make format`. Differential Revision: https://developer.blender.org/D8466
2020-07-26GPU: Remove GL constant from BIF_glutilClément Foucault
2020-07-03Clang-Tidy: Enable bugprone-misplaced-widening-castSergey Sharybin
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-05-03BLF: add new arguments to BLF_GlyphBoundsFnCampbell Barton
- glyph_bounds: to get the character width. - glyph_bearing: lower left character starting point. These values are needed for more precise glyph calculations.
2020-04-28BLF: add utility function to loop over glyph boundsCampbell Barton
2020-04-03Cleanup: use term 'attr' instead of 'attrib'Campbell Barton
This was already the case in most parts of the GPU API. Use full name for descriptive-comments.
2020-03-25UI: remove non-unicode font and simplify default font loading codeBrecht Van Lommel
There is no need to have another font embedded in the Blender executable, we can assume the bundled font exists. In the future we may provide a fallback if the font specified by the user in the preferences is missing a character, but that can use our bundled international font. Differential Revision: https://developer.blender.org/D6854
2020-03-25UI: always use international fontBrecht Van Lommel
This means Blender can display more text correctly without having to enable user interface translation. Previously the quality of the font was lower, but that has been fixed now. The font files have now been ungzipped, which results in faster file loading as Freetype can read only the parts of the file that it needs. Blender download size should not increase since the release package is compressed. This includes improvements for Cyrillic characters from the latest DejaVu Sans fonts from D6960, contributed by Harley Acheson. Fixes T74097. Differential Revision: https://developer.blender.org/D6854
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto