Font Changes (Parent Task) #94030

Open
opened 1 year ago by Harley · 13 comments
Harley commented 1 year ago
Collaborator

Font Changes


Changes to our text output code. Some of the general motivation explained [here ]] and more specific explanation of fallback font stack [ https:*devtalk.blender.org/t/discussion-of-d12622-fallback-font-stack/23502 | here .

FreeType Version Update (3.1 BCon2)

More Cleanup (probably 3.2 BCon1)

3.3

3.4 BCon1

More

Very Optional

Font Changes **** Changes to our text output code. Some of the general motivation explained **[here ]]** and more specific explanation of fallback font stack [[ https:*devtalk.blender.org/t/discussion-of-d12622-fallback-font-stack/23502 | here ](https:*devtalk.blender.org/t/proposed-font-changes/20821). * - [x] [D12020: Fix #75028: Show Font Display Names](https://archive.blender.org/developer/D12020) * - [x] [D12069: UI: VFont Display Names](https://archive.blender.org/developer/D12069) * - [x] [D12189: BLF: Do Not Cache Unused Rendered Glyphs](https://archive.blender.org/developer/D12189) * - [x] [D12200: BLF Cleanup: Size Defines, Comments, etc](https://archive.blender.org/developer/D12200) * - [x] [D12215: BLF: Do Not Preload Glyph Cache](https://archive.blender.org/developer/D12215) * - [x] [D12231: UI: Remove "Unfitted" Kerning Style Option](https://archive.blender.org/developer/D12231) * - [x] [D12276: BLF: Removal of font_kerning_style from space_userpref.py](https://archive.blender.org/developer/D12276) * - [x] [D12262: Refactor: BLF Without Kerning Modes](https://archive.blender.org/developer/D12262) * - [x] [D12293: BLF: Remove ASCII-only Code Paths](https://archive.blender.org/developer/D12293) * - [x] [D12124: VSE: Allow Wingdings and Symbol Fonts](https://archive.blender.org/developer/D12124) * - [x] [D12274: Refactor: BLF Kerning Cache After Use](https://archive.blender.org/developer/D12274) * - [x] [D12068: VFont: Refactor of check_freetypefont()](https://archive.blender.org/developer/D12068) * - [x] [D13015: BLF Refactor: blf_kerning_step_fast](https://archive.blender.org/developer/D13015) * - [x] [D13026: BLF Refactor: blf_utf8_next_fast](https://archive.blender.org/developer/D13026) * - [x] [D13040: UI: Open File Browser with Thumbnails for Fonts](https://archive.blender.org/developer/D13040) * - [x] [D13095: BLF: Refactor blf_glyph.c](https://archive.blender.org/developer/D13095) * - [x] [D12976: BLF: Remove Thread Locking For Font Metrics](https://archive.blender.org/developer/D12976) * - [x] [D8960: BLF: Use Floats for Font Size Points](https://archive.blender.org/developer/D8960) * - [x] [D12802: UI: Default Fonts Folder for Mac and Linux](https://archive.blender.org/developer/D12802) * - [x] [D13793: BLF: Reduction of use of BLF_DRAW_STR_DUMMY_MAX](https://archive.blender.org/developer/D13793) * - [x] [D13794: BLF: UI_fontstyle_draw Usage](https://archive.blender.org/developer/D13794) FreeType Version Update (3.1 BCon2) * - [x] Update Version to 2.11.0 * - [x] Add Brotli library for woff2 * - [x] Update Version to 2.11.1 (for Build issues on Win) * - [x] [D13822: BLF: Enable Filtering of woff and woff2 Files](https://archive.blender.org/developer/D13822) (#93917 (woff font files filter out but in reality they are supported)) More Cleanup (probably 3.2 BCon1) * - [x] [D13226: BLF: Save fixed_width value in cache](https://archive.blender.org/developer/D13226) * - [x] [D13230: BLF: Default Size as Float](https://archive.blender.org/developer/D13230) * - [x] [D13624: BLF: Removal of blf_font_draw_ascii Declaration](https://archive.blender.org/developer/D13624) * - [x] [D13395: BLF: blf_glyph_cache_free Made Static](https://archive.blender.org/developer/D13395) * - [x] [D13374: BLF: Cleanup blf_glyph_cache_find & blf_font_size](https://archive.blender.org/developer/D13374) * - [x] [D14052: BLF Cleanup: Use FreeType Enum FT_Err_Ok](https://archive.blender.org/developer/D14052) * - [x] [D13940: Fix #95257: Filter files on "name" and "relpath"](https://archive.blender.org/developer/D13940) * - [x] [D14582: BLF: sub-pixel positioning support](https://archive.blender.org/developer/D14582) * - [ ] Hinting Improvements. Use [D14633: BLF: Corrected Hinting](https://archive.blender.org/developer/D14633) as reference. * - [ ] Use FT_Pix (26.6 integers) for Font Sizes 3.3 * - [x] [D12622: BLF: Fallback Font Stack](https://archive.blender.org/developer/D12622) * - [x] [D12977: BLF: Add Support for Variable Fonts](https://archive.blender.org/developer/D12977) 3.4 BCon1 * - [x] [D15472: BLF: Don't Print Empty Strings](https://archive.blender.org/developer/D15472) * - [x] [D15258: BLF: Fonts with FT_Face Optional](https://archive.blender.org/developer/D15258) * - [x] [D15235: BLF: New Font Stack for Better Language Coverage](https://archive.blender.org/developer/D15235) * - [x] [D15644: BLF: Mutex Lock Glyph Cache Per Font, Not Global](https://archive.blender.org/developer/D15644) * - [x] [D15686: BLF: FreeType Optional Caching](https://archive.blender.org/developer/D15686) * - [x] [D13376: BLF: Gamma Correction](https://archive.blender.org/developer/D13376) * - [x] [D15961: BLF: Refactor of DPI](https://archive.blender.org/developer/D15961) * - [x] [D15765: BLF: Refactor of blf_font_boundbox_foreach_glyph](https://archive.blender.org/developer/D15765) * - [x] [D15659: BLF: Editing Text with Combining Characters](https://archive.blender.org/developer/D15659) * - [ ] Add [Fribidi ](https://github.com/fribidi/fribidi) to project (for rearranging RTL text into visual order). * - [ ] Add [Harfbuzz ](https://harfbuzz.github.io/) to project (for text shaping and ligatures) * - [ ] [D13623: BLF: Remove Fixed Pitch Code](https://archive.blender.org/developer/D13623) - might not be required * - [ ] [D15462: BLF: Consolidate Text Output / Processing](https://archive.blender.org/developer/D15462) - might not be required * - [ ] [D15736: BLF: Refactor of blf_font_boundbox_ex](https://archive.blender.org/developer/D15736) * - [ ] [D15687: WIP: Bidirectional Text and Complex Shaping](https://archive.blender.org/developer/D15687) * - [ ] Enable text shaping once we have new versions of Arabic and Hebrew translation files. * - [ ] Improve text caret insertion and text selection for complex and RTL languages More * - [x] [D12032: Improved Font Thumbnails](https://archive.blender.org/developer/D12032) * - [ ] [D13293: Fix #61398: Show User Fonts with System (Win32)](https://archive.blender.org/developer/D13293) * - [ ] [D13937: UI: Interface Font Selection](https://archive.blender.org/developer/D13937) * - [ ] [D14422: BLF: Support All Render and Bitmap Formats](https://archive.blender.org/developer/D14422) * - [ ] [D13399: BLF WIP: Outlines from FontBLF](https://archive.blender.org/developer/D13399) * - [ ] Replace base Latin fonts with [Roboto ](https://fonts.google.com/specimen/Roboto) * - [ ] [D14478: BLF: Use Slight Hinting by Default](https://archive.blender.org/developer/D14478) * - [ ] color fonts? * - [ ] SDF rendering? Very Optional * - [ ] [D12606: UI Experiment: File Browser Font Lists](https://archive.blender.org/developer/D12606) * - [ ] [D13447: UI: Unicode Codepoint Entry](https://archive.blender.org/developer/D13447) * - [ ] Allow Ligatures for English (Fira Code, Hasklig, Monoid, etc)
Harley self-assigned this 1 year ago
Harley commented 1 year ago
Poster
Collaborator

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Harley commented 1 year ago
Poster
Collaborator

Added subscribers: @Harley, @ideasman42

Added subscribers: @Harley, @ideasman42
Garek commented 1 year ago

Added subscriber: @Garek

Added subscriber: @Garek

Added subscriber: @Raimund58

Added subscriber: @Raimund58

Added subscriber: @SteffenD

Added subscriber: @SteffenD

Added subscriber: @GeorgiaPacific

Added subscriber: @GeorgiaPacific

Added subscriber: @AlexeyAdamitsky

Added subscriber: @AlexeyAdamitsky

Added subscriber: @hamza-el-barmaki

Added subscriber: @hamza-el-barmaki

hi ,
i really appreciate your fantastic work, i have a question is there a future plan to add support for math writing expressions , maybe this link help https://fonts.google.com/noto/specimen/Noto+Sans+Math, i don't know how it can be used , or is there any support for latex expression ... directly edited in blender , maybe i ask so much , thank you again

hi , i really appreciate your fantastic work, i have a question is there a future plan to add support for math writing expressions , maybe this link help https://fonts.google.com/noto/specimen/Noto+Sans+Math, i don't know how it can be used , or is there any support for latex expression ... directly edited in blender , maybe i ask so much , thank you again
Poster
Collaborator

@hamza-el-barmaki - is there a future plan to add support for math writing expressions , maybe this link help https://fonts.google.com/noto/specimen/Noto+Sans+Math

That font will be distributed with Blender for version 3.4 as part of this: D15235: BLF: New Font Stack for Better Language Coverage

With the above we will have very good coverage of all the math and other symbols defined in Unicode (Noto Sans Symbols and Symbols2 is also included).

But this just means that we can output these symbols (even if the user changes the UI font). Composing them in any special way, like with Latex, isn't a part of this though. Although I can't think of any use case for Latex, I have no doubt that we will find interesting uses for these characters in the future.

> @hamza-el-barmaki - is there a future plan to add support for math writing expressions , maybe this link help https://fonts.google.com/noto/specimen/Noto+Sans+Math That font will be distributed with Blender for version 3.4 as part of this: [D15235: BLF: New Font Stack for Better Language Coverage](https://archive.blender.org/developer/D15235) With the above we will have very good coverage of all the math and other symbols defined in Unicode (Noto Sans Symbols and Symbols2 is also included). But this just means that we can output these symbols (even if the user changes the UI font). Composing them in any special way, like with Latex, isn't a part of this though. Although I can't think of any use case for Latex, I have no doubt that we will find interesting uses for these characters in the future.

cool your the best, i have a question, is there fonts as single-line font ?are they many ?
it well be interesting to convert them to Gpencil and add a build modifier for animation stuff (Single line font are better for that purpose), also play with other Gpencil modifiers.
i currently found a generator of single line font but it would be good to have them included in blender , https://www.templatemaker.nl/singlelinetext/

cool your the best, i have a question, is there fonts as single-line font ?are they many ? it well be interesting to convert them to Gpencil and add a build modifier for animation stuff (Single line font are better for that purpose), also play with other Gpencil modifiers. i currently found a generator of single line font but it would be good to have them included in blender , https://www.templatemaker.nl/singlelinetext/

Added subscriber: @aryeramaty

Added subscriber: @aryeramaty

Added subscriber: @Austin-Berenyi

Added subscriber: @Austin-Berenyi
Sign in to join this conversation.
No Label
Interest/Alembic
Interest/Animation & Rigging
Interest/Asset Browser
Interest/Asset Browser Project Overview
Interest/Audio
Interest/Automated Testing
Interest/Blender Asset Bundle
Interest/Collada
Interest/Compositing
Interest/Core
Interest/Cycles
Interest/Dependency Graph
Interest/Development Management
Interest/Eevee & Viewport
Interest/Freestyle
Interest/Geometry Nodes
Interest/Grease Pencil
Interest/ID Management
Interest/Images & Movies
Interest/Import/Export
Interest/Line Art
Interest/Masking
Interest/Modeling
Interest/Modifiers
Interest/Motion Tracking
Interest/Nodes & Physics
Interest/Overrides
Interest/Performance
Interest/Performance
Interest/Physics
Interest/Pipeline, Assets & I/O
Interest/Platforms, Builds, Tests & Devices
Interest/Python API
Interest/Render & Cycles
Interest/Render Pipeline
Interest/Sculpt, Paint & Texture
Interest/Text Editor
Interest/Translations
Interest/Triaging
Interest/Undo
Interest/USD
Interest/User Interface
Interest/UV Editing
Interest/VFX & Video
Interest/Video Sequencer
Interest/Virtual Reality
legacy module/Animation & Rigging
legacy module/Core
legacy module/Development Management
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Rendering & Cycles
legacy module/Sculpt, Paint & Texture
legacy module/Triaging
legacy module/User Interface
legacy module/VFX & Video
legacy project/1.0.0-beta.2
legacy project/Asset Browser (Archived)
legacy project/BF Blender: 2.8
legacy project/BF Blender: After Release
legacy project/BF Blender: Next
legacy project/BF Blender: Regressions
legacy project/BF Blender: Unconfirmed
legacy project/Blender 2.70
legacy project/Code Quest
legacy project/Datablocks and Libraries
legacy project/Eevee
legacy project/Game Animation
legacy project/Game Audio
legacy project/Game Data Conversion
legacy project/Game Engine
legacy project/Game Logic
legacy project/Game Physics
legacy project/Game Python
legacy project/Game Rendering
legacy project/Game UI
legacy project/GPU / Viewport
legacy project/GSoC
legacy project/Infrastructure: Websites
legacy project/LibOverrides - Usability and UX
legacy project/Milestone 1: Basic, Local Asset Browser
legacy project/Nodes
legacy project/OpenGL Error
legacy project/Papercut
legacy project/Pose Library Basics
legacy project/Retrospective
legacy project/Tracker Curfew
legacy project/Wintab High Frequency
Meta/Good First Issue
Meta/Papercut
migration/requires-manual-verification
Module › Animation & Rigging
Module › Core
Module › Development Management
Module › Eevee & Viewport
Module › Grease Pencil
Module › Modeling
Module › Nodes & Physics
Module › Pipeline, Assets & IO
Module › Platforms, Builds, Tests & Devices
Module › Python API
Module › Render & Cycles
Module › Sculpt, Paint & Texture
Module › Triaging
Module › User Interface
Module › VFX & Video
Platform/FreeBSD
Platform/Linux
Platform/macOS
Platform/Windows
Priority › High
Priority › Low
Priority › Normal
Priority › Unbreak Now!
Status › Archived
Status › Confirmed
Status › Duplicate
Status › Needs Information from Developers
Status › Needs Information from User
Status › Needs Triage
Status › Resolved
Type › Bug
Type › Design
Type › Known Issue
Type › Patch
Type › Report
Type › To Do
No Milestone
No project
No Assignees
9 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#94030
Loading…
There is no content yet.