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-27BLF: Editing Text with Combining CharactersHarley Acheson
Corrections for caret insertion & movement and deletion for text strings that include non-precomposed diacritical marks (Unicode combining characters). See D15659 for more details and examples. Differential Revision: https://developer.blender.org/D15659 Reviewed by Campbell Barton
2022-09-25BLF: Refactor of blf_font_boundbox_foreach_glyphHarley Acheson
Refactor of `BLF_boundbox_foreach_glyph` and simplification of its usage by only passing translated glyph bounds to callbacks. See D15765 for more details. Differential Revision: https://developer.blender.org/D15765 Reviewed by Campbell Barton
2022-09-24UI: Improved Font ThumbnailsHarley Acheson
Thumbnails of fonts that better show design, shapes, contents, intent, and intended language. Previews almost every known language - living and dead - and symbol, specialty fonts, etc. See D12032 for more details and samples. Differential Revision: https://developer.blender.org/D12032 Reviewed by Campbell Barton
2022-09-24BLF: Refactor of DPIHarley Acheson
Correction of U.dpi to hold actual monitor DPI. Simplify font sizing by omitting DPI as API argument, always using 72 internally. See D15961 for more details. Differential Revision: https://developer.blender.org/D15961 Reviewed by Campbell Barton
2022-09-22Fix crash loading fonts that fail to be readCampbell Barton
Null pointer dereference since [0] when font's can't be read. [0]: d39abb74a0a99fde2c9d845821d52c198ae4da24
2022-09-14BLF: Incorrect Define UsedHarley Acheson
Replace incorrect usage of GLYPH_ASCII_TABLE_SIZE with correct KERNING_CACHE_TABLE_SIZE See D15815 for more details. Differential Revision: https://developer.blender.org/D15815 Own Code.
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-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-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-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-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: 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-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-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-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-03-25BLF Cleanup: Use FreeType Enum FT_Err_OkHarley Acheson
Replace comparisons of FT_Error against 0 with FT_Err_Ok instead. See D14052 for more details. Differential Revision: https://developer.blender.org/D14052 Reviewed by Campbell Barton
2022-03-24Cleanup: use "filepath" instead of "filename" for full pathsCampbell Barton
Reserve "filename" when only the name component is used.
2022-02-11File headers: SPDX License migrationCampbell Barton
Use a shorter/simpler license convention, stops the header taking so much space. Follow the SPDX license specification: https://spdx.org/licenses - C/C++/objc/objc++ - Python - Shell Scripts - CMake, GNUmakefile While most of the source tree has been included - `./extern/` was left out. - `./intern/cycles` & `./intern/atomic` are also excluded because they use different header conventions. doc/license/SPDX-license-identifiers.txt has been added to list SPDX all used identifiers. See P2788 for the script that automated these edits. Reviewed By: brecht, mont29, sergey Ref D14069
2022-02-08BLF: Enable Filtering of woff and woff2 FontsHarley Acheson
Add files with extension ".woff" and ".woff2" to FILE_TYPE_FTFONT file type. Allows selecting and using these types of font files. See D13822 for more details. Differential Revision: https://developer.blender.org/D13822 Reviewed by Campbell Barton
2022-02-05BLF: Cleanup blf_glyph_cache_find & blf_font_sizeHarley Acheson
Removes unnecessary calls to blf_glyph_cache_find, simplifies blf_font_size, and reduces calls to it. blf_glyph_cache_new and blf_glyph_cache_find made static. See D13374 for more details. Differential Revision: https://developer.blender.org/D13374 Reviewed by Campbell Barton
2022-02-05BLF: Save fixed_width value in cacheHarley Acheson
Cache the font size's ideal fixed width column size in the glyph cache rather than the font itself to improve performance. See D13226 for more details. Differential Revision: https://developer.blender.org/D13226 Reviewed by Campbell Barton
2022-02-05BLF: blf_glyph_cache_free Made StaticHarley Acheson
blf_glyph_cache_free does not need to be public. See D13395 for more details. Differential Revision: https://developer.blender.org/D13395 Reviewed by Campbell Barton
2021-12-08Cleanup: move public doc-strings into headers for 'blenfont'Campbell Barton
Ref T92709
2021-11-19Cleanup: fix typos in comments and docsBrecht Van Lommel
Contributed by luzpaz. Differential Revision: https://developer.blender.org/D13264
2021-11-13BLF: Use Floats for Font Point SizesHarley Acheson
Allow the use of floating-point values for font point sizes, which allows greater precision and flexibility for text output. See D8960 for more information, details, and justification. Differential Revision: https://developer.blender.org/D8960 Reviewed by Campbell Barton
2021-11-06Cleanup: remove window_manager & editor includes from BLFCampbell Barton
Remove the need to include the window manager & editor functions in low level font rendering code. - The default font size is now set when changed in the preferences. - Flushing cache is set as a callback.