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
2022-09-06Fix T100823: Do Not Load Non-Scalable FontsHarley Acheson
Do not allow the loading of old-style non-scalable fonts. See D15884 for more details. Differential Revision: https://developer.blender.org/D15884 Reviewed by Brecht Van Lommel
2022-09-06Cleanup: spelling in comments, formatting, move comments into headersCampbell Barton
2022-09-02Cleanup: Fix clang-tidy warnings: [bugprone-suspicious-memory-comparison]Clément Foucault
2022-09-02BLF: Replacement of Hebrew FontHarley Acheson
Replacement of our Hebrew font, which has bad variable weight default. See D15846 for more details. Differential Revision: https://developer.blender.org/D15846 Reviewed by Brecht Van Lommel
2022-08-31Cleanup: split font datafile loading into a functionCampbell Barton
Also use more descriptive/conventional variable names.
2022-08-31BLF: use existing stat from 'direntry' for directory checkCampbell Barton
2022-08-30BLF: Fallback Stack Error HandlingHarley Acheson
Properly handle invalid fonts. See D15798 for more details Differential Revision: https://developer.blender.org/D15798 Reviewed by Brecht Van Lommel
2022-08-28Cleanup: use const FontBLF argumentsCampbell Barton
2022-08-26Cleanup: spelling in comments, formatCampbell Barton
2022-08-22Merge branch 'blender-v3.3-release'Campbell Barton
2022-08-22Fix potential undefined behavior printing a NULL pointer stringCampbell Barton
Improve messages when the font directory can't be detected or is missing.
2022-08-20BLF: Fix FT_Get_Advance Wrong Value Without SizeHarley Acheson
Fix possibility of getting invalid fixed-pitch advance size. See D15735 for more details. Differential Revision: https://developer.blender.org/D15735 Own Code.
2022-08-19Cleanup: minor changes to BLF APICampbell Barton
- Use upper-case for defines. - Use u-prefix for unsigned types. - Use snake case for struct members. - Use const struct for unicode_blocks & arguments. - Use doxy style comments for struct members. - Add doxy sections for recently added code. - Correct code-comments (outdated references). - Remove 'e' prefix from struct UnicodeBlock/FaceDetails (normally used for enums).
2022-08-19Cleanup: spelling in commentsCampbell Barton
2022-08-18BLF: Gamma CorrectionHarley Acheson
Gamma correction for glyph coverage values. See D13376 for details and examples. Differential Revision: https://developer.blender.org/D13376 Reviewed by Julian Eisel
2022-08-17Cleanup: compiler warnings, clang-tidyCampbell Barton
2022-08-17BLF: FreeType Optional CachingHarley Acheson
Implementation of the FreeType 2 cache subsystem, which limits the number of concurrently-opened FT_Face and FT_Size objects, as well as caching information like character maps to speed up glyph id lookups. This time with the option of opening FontBLFs that are not cached. See D15686 for more details. Differential Revision: https://developer.blender.org/D15686 Reviewed by Brecht Van Lommel
2022-08-16Fix T99872: Crash Loading Embedded Fonts - MasterHarley Acheson
Commit rBc0845abd897f to 3.4 (master) uses font's filepath without checking if it exists, therefore crashing on embedded fonts since they do not have a filepath (loaded from memory). See D15703 for more details Differential Revision: https://developer.blender.org/D15703 Reviewed by Brecht Van Lommel
2022-08-15GPU: replace GLEW with libepoxyChristian Rauch
With libepoxy we can choose between EGL and GLX at runtime, as well as dynamically open EGL and GLX libraries without linking to them. This will make it possible to build with Wayland, EGL, GLVND support while still running on systems that only have X11, GLX and libGL. It also paves the way for headless rendering through EGL. libepoxy is a new library dependency, and is included in the precompiled libraries. GLEW is no longer a dependency, and WITH_SYSTEM_GLEW was removed. Includes contributions by Brecht Van Lommel, Ray Molenkamp, Campbell Barton and Sergey Sharybin. Ref T76428 Differential Revision: https://developer.blender.org/D15291
2022-08-12BLF: Adjustments to Static Font DetailsHarley Acheson
Adjust static font details so that we can properly display Arabic contextual letter forms. And so that alphabetical ligatures are loaded from language-specific fonts. See D15678 for more details Differential Revision: https://developer.blender.org/D15678 Own Code.
2022-08-11BLF: Mutex Lock Glyph Cache Per Font, Not GlobalHarley Acheson
Only lock access to our glyph caches per-font, rather than globally. Also upgrade from spinlocks to mutexes. See D15644 for more details. Differential Revision: https://developer.blender.org/D15644 Reviewed by Brecht Van Lommel
2022-08-11BLF: Fallback Broken After Cache RemovalHarley Acheson
Font fallback feature not working after reverting the implementation of the cache system. Missing an blf_ensure_face before FT_Get_Char_Index. Otherwise glyphs not found in fonts without faces. Own Code
2022-08-09BLF: Revert FreeType CacheHarley Acheson
Remove the FreeType cache implementation. Not multithreading correctly. Original commit: 9d77b5a0ed7b See D15647 for more details. Differential Revision: https://developer.blender.org/D15647 Own Code.
2022-08-09Fix T100242: Handle Flushed FT SizesHarley Acheson
Properly deal with FreeType cache flushing a font's ft_size. Set this to NULL in finalizer, and add a blf_ensure_size to make sure it exists only when needed. See D15639 for more details. Differential Revision: https://developer.blender.org/D15639 Reviewed by Brecht Van Lommel
2022-08-05Fix: Build error after recent commitHans Goudey
A second try after 8b467313965ac5ea.
2022-08-05Fix Build Warnings in blf_font.cHarley Acheson
Function made static, unused argument, type conversion Introduced in 9d77b5a0ed7b Own Code.
2022-08-04BLF: Implement FreeType CachingHarley Acheson
Implementation of the FreeType 2 cache subsystem, which limits the number of concurrently-opened FT_Face and FT_Size objects, as well as caching information like character maps to speed up glyph id lookups. See D13137 for much more detail. Differential Revision: https://developer.blender.org/D13137 Reviewed by Brecht Van Lommel
2022-08-03Cleanup: fix various typosBrecht Van Lommel
Contributed by luzpaz. Differential Revision: https://developer.blender.org/D15588
2022-07-29Cleanup: quiet warnings in recent BLF and rna_ui changesCampbell Barton
2022-07-29BLF: New Font Stack for Better Language CoverageHarley Acheson
Replace our existing two fonts with a stack of new fonts to increase and improve language coverage and to add many new symbols and icons. Covers glyphs of top 44 languages - 1.5 billion more potential users. See D10887 for lots of details. Differential Revision: https://developer.blender.org/D10887 Reviewed by Brecht Van Lommel
2022-07-29BLF: Fonts with FT_Face OptionalHarley Acheson
Allow FontBLFs to exist with NULL FT_Face, added only when actually needed. Speeds up startup and unused fonts are not loaded. See D15258 for more details. Differential Revision: https://developer.blender.org/D15258 Reviewed by Brecht Van Lommel
2022-07-29BLF: Don't Print Empty StringsHarley Acheson
Optimize font drawing by skipping empty strings. See D15472 for more details. Differential Revision: https://developer.blender.org/D15472 Reviewed by Campbell Barton
2022-07-08Cleanup: spelling in commentsCampbell Barton
Also move mis-placed doc-string.
2022-07-08Cleanup: Calm GCC Conversion WarningHarley Acheson
Commit b9c0eed206b0 introduced a GCC conversion warning because of an assignment of a long int value to an int. Own Code
2022-07-07BLF: Add Support for Variable FontsHarley Acheson
Add support for Variable/Multiple Master font features. These are fonts that contain a range of design variations along multiple axes. This contains no client-facing options. See D12977 for details and examples Differential Revision: https://developer.blender.org/D12977 Reviewed by Brecht Van Lommel
2022-07-04Cleanup: spelling in commentsCampbell Barton
2022-06-28Cleanup: compiler warnings, remove unused functionsCampbell Barton
2022-06-27Revert 6de0f299505a: BLF: Support for Variable FontsHarley Acheson
Reverting for now, breaks on GCC
2022-06-27BLF: Add Support for Variable FontsHarley Acheson
Add support for Variable/Multiple Master font features. These are fonts that contain a range of design variations along multiple axes. This contains no client-facing options. See D12977 for details and examples Differential Revision: https://developer.blender.org/D12977 Reviewed by Brecht Van Lommel
2022-06-22Cleanup: replace BLF defines with enum, formattingCampbell Barton
2022-06-17Cleanup: Compiler Warning of Sign Conversion #2Ray Molenkamp
Second attempt to silence sign-conversion warning on Linux, introduced in rB524a9e3db810. Confirmed fix on buildbot.
2022-06-17Cleanup: Compiler Warning of Sign ConversionHarley Acheson
rB524a9e3db810 introduced sign-conversion warning on Linux. Own Code
2022-06-17BLF: Fallback Font StackHarley Acheson
Allow use of multiple fonts acting together like a fallback stack, where if a glyph is not found in one it can be retrieved from another. See D12622 for much more detail Differential Revision: https://developer.blender.org/D12622 Reviewed by Brecht Van Lommel
2022-05-06Cleanup: spelling in comments, use doxygen commentsCampbell Barton
2022-04-14Fix T97310: BLF Line Height While Text WrappingHarley Acheson
Fix word-wrapped tooltip text not showing by aligning to pixel grid. See D14639 for more details. Differential Revision: https://developer.blender.org/D14639 Reviewed by Campbell Barton
2022-04-13Cleanup: warning for 'float' to 'int' with MSVCCampbell Barton
2022-04-13Cleanup: avoid redundant float/int conversions in BLFCampbell Barton
Internally many offsets for BLF were integers but exposed as floats, since these are used in pixel-space, many callers were converging them back to integers. Simplify logic by using ints.
2022-04-13BLF: sub-pixel positioning supportCampbell Barton
Support sub-pixel kerning and hinting for future support for improved character placement. No user visible changes have been made. - Calculate sub-pixel offsets, using integer maths. - Use convenience functions to perform the conversions and hide the underlying values. - Use `ft_pix` type to distinguish values that use sub-pixel integer values from freetype and values rounded to pixels. This was originally based on D12999 by @harley with the user visible changes removed so they can be applied separately.
2022-04-04Cleanup: ensure space after file named in headersCampbell Barton
Add blank lines after file references to avoid them being interpreted as doc-strings the following declarations.
2022-03-25Cleanup: use count or num instead of nbrCampbell Barton
Follow conventions from T85728.