text does not render properly with scripts like devanagari #105875

Closed
opened 2023-03-18 09:08:44 +01:00 by Raphael-Langerhorst · 1 comment

System Information
Operating system: Linux
Graphics card:

Blender Version
Broken: 3.3.4
Broken: blender-3.6.0-alpha+main.99506b3d733f-linux.x86_64-release
Worked: (newest version of Blender that worked as expected)

Short description of error

does not render devanagari text properly

Exact steps for others to reproduce the error
Open attached blend file, resources are packed, otherwise make sure you have kalimati font available in your system (apt-get install fonts-deva-extra)

I tried both to add a text object in 3D layout as well as in video editing. My requirement is mainly for video editing. I checked latest alpha and 3.3.4, both show the same behaviour. Please address this issue.

There are 2 issues in the supplied sample of "shanti" (peace translated to Nepali, use translate.google.com or something):

(1) the "n" character should be half and attach to the "t" (it has halant, indicating it is half).
(2) the i should be inserted BEFORE the last syllable.

Compare against the rendering of shanti in the screenshot with the kate text editor.

I am neither familiar with font rendering engines nor do I know the internals of Blender, but devanagari fonts have two characteristics:

In devanagari there are half characters that combine in many possible ways to syllables. Then some characters written after the syllable may need to appear before it, as in the example above. So a simple text engine will not do the job here. I have no idea how these things are encoded in a TTF font. In Latin every letter always stays same no matter what but this is not the case for devanagari (used in Hindi, Nepali and Sanskrit, among others).

**System Information** Operating system: Linux Graphics card: **Blender Version** Broken: 3.3.4 Broken: blender-3.6.0-alpha+main.99506b3d733f-linux.x86_64-release Worked: (newest version of Blender that worked as expected) **Short description of error** does not render devanagari text properly **Exact steps for others to reproduce the error** Open attached blend file, resources are packed, otherwise make sure you have kalimati font available in your system (apt-get install fonts-deva-extra) I tried both to add a text object in 3D layout as well as in video editing. My requirement is mainly for video editing. I checked latest alpha and 3.3.4, both show the same behaviour. Please address this issue. There are 2 issues in the supplied sample of "shanti" (peace translated to Nepali, use translate.google.com or something): (1) the "n" character should be half and attach to the "t" (it has halant, indicating it is half). (2) the i should be inserted BEFORE the last syllable. Compare against the rendering of shanti in the screenshot with the kate text editor. I am neither familiar with font rendering engines nor do I know the internals of Blender, but devanagari fonts have two characteristics: In devanagari there are half characters that combine in many possible ways to syllables. Then some characters written after the syllable may need to appear before it, as in the example above. So a simple text engine will not do the job here. I have no idea how these things are encoded in a TTF font. In Latin every letter always stays same no matter what but this is not the case for devanagari (used in Hindi, Nepali and Sanskrit, among others).
Raphael-Langerhorst added the
Priority
Normal
Status
Needs Triage
Type
Report
labels 2023-03-18 09:08:44 +01:00

This is a long-standing known issue that complex shaping scenarios for such languages are not yet implemented. Work has been done recently to better prepare for proper support, but there is still quite a bit of work remaining.

I'll mark this as a duplicate but feel free to subscribe to the following 2 tasks for updates on the matter: #100207 and #67452

This is a long-standing known issue that complex shaping scenarios for such languages are not yet implemented. Work has been done recently to better prepare for proper support, but there is still quite a bit of work remaining. I'll mark this as a duplicate but feel free to subscribe to the following 2 tasks for updates on the matter: #100207 and #67452
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2023-03-18 09:52:10 +01:00
Jesse Yurkovich added
Status
Duplicate
and removed
Status
Archived
labels 2023-03-18 09:52:18 +01:00
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
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
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
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
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
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 Info 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
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#105875
No description provided.