View Issue Details

IDProjectCategoryView StatusLast Update
0031719CommunityOCCT:Visualizationpublic2020-09-14 10:55
ReporterVico Liang Assigned Tobugmaster  
PrioritynormalSeverityminor 
Status closedResolutionduplicate 
Product Version7.4.0 
Target Version7.5.0 
Summary0031719: no default Chinese Unicode support
DescriptionGraphic3d_Text has issue when drawing Chinese unicode text.It will draw a placeholder rectangle. Is it possible to draw unicode such as Chinese for any font selected? It's difficult to know which font should be used in program.
TagsNo tags attached.
Test case number

Relationships

duplicate of 0031720 closedbugmaster Community Visualization, Font_FontMgr - register one more CJK fallback font available on newer Android devices 
related to 0030782 closedbugmaster Open CASCADE Visualization, Font_FTFont - use predefined fallback fonts for extended Unicode subsets 

Activities

kgv

2020-08-19 19:12

developer   ~0093553

Please be more specific on use case:
- Text example.
- System (including version).
- Warnings/errors emitted by Font Manager (consider enabling logging Trace (Message_Trace) messages in addition to defaults).

Here is a Draw Harness sample from 0030782:
pload MODELING VISUALIZATION
dtracelevel trace
vfont -verbose 1
vinit View1
vtop
vpoint p00  0  0 0;vpoint p01  0 10 0;vpoint p11 10 10 0;vpoint p10 10  0 0
vfit
vzoom 0.8
vdrawtext t2 "简体中文 (Chinese)"    -pos  0  2 0 -halign left  -font cjk
vdrawtext t3 "简体中文 (Chinese)"    -pos 10  3 0 -halign right -font sans


Application may specify font explicitly, based on its knowledge of properties of system fonts or with help of extra fonts shipped with application itself.

OCCT defines several fallback fonts for CJK glyphs (as Western fonts usually do not provide CJK glyphs and specialized CJK fonts has poor support of Western subset), but as OCCT doesn't ship any fonts, the availability of these specific fonts depends on a system. Fallback list could be extended to handle new / changed systems considering new fonts coming with the system.

Another alternative is probing all system fonts for available UNICODE subsets in case of absence of predefined one, but picking an arbitrary font might be not good.

Vico Liang

2020-08-19 20:21

developer   ~0093554

Last edited: 2020-08-19 20:22

It works well if the font is selected correctly. I see the fallback solution for such Unicode, i thought it would work.In most cases, the font is available and the problem might be the fallback not working.

kgv

2020-08-31 15:21

developer   ~0093765

Dear bugmaster,

please close as duplicate of 0031720.

Issue History

Date Modified Username Field Change
2020-08-19 18:09 Vico Liang New Issue
2020-08-19 18:09 Vico Liang Assigned To => kgv
2020-08-19 19:01 kgv Relationship added related to 0030782
2020-08-19 19:12 kgv Note Added: 0093553
2020-08-19 19:13 kgv Assigned To kgv => Vico Liang
2020-08-19 19:13 kgv Status new => feedback
2020-08-19 20:20 kgv Relationship added duplicate of 0031720
2020-08-19 20:21 Vico Liang Note Added: 0093554
2020-08-19 20:22 Vico Liang Note Edited: 0093554
2020-08-20 11:20 Vico Liang Assigned To Vico Liang => kgv
2020-08-31 15:21 kgv Note Added: 0093765
2020-08-31 15:21 kgv Assigned To kgv => bugmaster
2020-08-31 15:21 kgv Resolution open => duplicate
2020-08-31 15:21 kgv Product Version => 7.4.0
2020-09-14 10:55 bugmaster Status feedback => closed