DiscussionsIssue archiveOCCT:Visualization

Archived issue #0031728

Visualization, Font_FontMgr - provide function to register fallback fonts in application level

CommunityOCCT:Visualizationclosed5 public notes

Search issues

Description

In some cases, developer may need to register fallback fonts to support unicode extension. Method addFontAlias() is private, it would be great if it's public, if so developers have chances to register fallback fonts.

Steps to reproduce

pload VISUALIZATION
dtracelevel trace
vfont -verbose 1
vfont -aliases

# clear standard aliases and add single one for testing
vfont -clearAliases
vfont -addAlias "cjk" "simsun"

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 Roboto

Public activity

5 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Commenter 3.

[revision removed]


Detailed log of new commits:

Author: Commenter 3
Date: Mon Aug 31 13:03:32 2020 +0300

    0031728: Visualization, Font_FontMgr - provide function to register fallback fonts in application level
    
    Added public method Font_FontMgr::AddFontAlias() for registering custom aliases and fallback fonts.
    vfont command has been extended with arguments -aliases, -addAlias, -removeAlias, -clearAlias and -clearAliases.
02Commenter 3
Patch is ready for review
- OCCT branch: [archived branch]

http://jenkins-test-12.nnov.opencascade.com:8080/view/CR31728-master-KGV/view/COMPARE/
03Commenter 3
The patch was reviewed without remarks
04Commenter 1
Combination -
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian80-64:
OCCT
Total CPU difference: 17319.18000000012 / 17284.370000000214 [+0.20%]
Products
Total CPU difference: 12059.670000000087 / 12007.590000000067 [+0.43%]
Windows-64-VC14:
OCCT
Total CPU difference: 18776.390625 / 18770.796875 [+0.03%]
Products
Total CPU difference: 13251.640625 / 13222.90625 [+0.22%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
05Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]

Related records