MantisBT - Open CASCADE
View Issue Details
0030439Open CASCADE[OCCT] OCCT:Visualizationpublic2019-01-10 23:132019-02-21 09:44
kgv 
bugmaster 
normalmajor 
verifiedfixed 
[OCCT] 6.5.4 
[OCCT] 7.4.0* 
Not needed
0030439: Visualization - extend fonts search within Font_FontMgr::FindFont() on Linux
Modern Linux distributions do not provide fonts using X11 mechanism, so that it is desired registering other fonts available in system.
pload MODELING VISUALIZATION
dtracelevel trace
vfont -verbose 1
smallview +X+Y
clear
text2brep tt "CAD Assistant" -font Times-Roman   -height 10 -pos 0  0 0
text2brep ta "CAD Assistant" -font Arial   -height 10 -pos 0 12 0
text2brep tc "CAD Assistant" -font Courier -height 10 -pos 0 24 0
text2brep tf "CAD Assistant" -font XOXOXO  -height 10 -pos 0 32 0
fit

vclear
vinit View1
vzbufftrihedron
vtop
vdrawtext vt "CAD Assistant" -font Times-Roman   -height 20 -pos 0  0 0
vdrawtext va "CAD Assistant" -font Arial   -height 20 -pos 0 12 0
vdrawtext vc "CAD Assistant" -font Courier -height 20 -pos 0 24 0
vdrawtext vf "CAD Assistant" -font XOXOXO  -height 20 -pos 0 32 0
vfit
vzoom 0.5
No tags attached.
related to 0025978closed bugmaster Open CASCADE Visualization - setup font aliases for Android 
related to 0023466closed dbv Open CASCADE Move OSD_FontMgr class outside TKernel 
related to 0027505closed bugmaster Open CASCADE Visualization, Font_FontMgr - do not look for fonts.dir on OS X 
parent of 0030474verified bugmaster Open CASCADE Visualization - fallback font is ignored for missing font alias within Font_FontMgr::FindFont() 
has duplicate 0030334feedback abv Open CASCADE Visualization - missing fonts are not properly reported by Font_FontMgr::FindFont() 
Issue History
2019-01-10 23:13kgvNew Issue
2019-01-10 23:13kgvAssigned To => kgv
2019-01-10 23:13kgvRelationship addedrelated to 0030334
2019-01-10 23:14gitNote Added: 0081738
2019-01-15 16:30gitNote Added: 0081785
2019-01-15 21:03kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=20551#r20551
2019-01-15 21:25gitNote Added: 0081787
2019-01-15 23:15gitNote Added: 0081788
2019-01-15 23:23gitNote Added: 0081789
2019-01-15 23:27gitNote Added: 0081790
2019-01-15 23:29gitNote Added: 0081791
2019-01-16 00:10gitNote Added: 0081792
2019-01-16 00:41kgvRelationship addedrelated to 0025978
2019-01-16 00:42kgvRelationship addedrelated to 0023466
2019-01-16 00:42kgvProduct Version7.3.0 => 6.5.4
2019-01-16 12:06gitNote Added: 0081794
2019-01-16 15:58gitNote Added: 0081796
2019-01-16 16:04gitNote Added: 0081797
2019-01-16 16:10gitNote Added: 0081798
2019-01-16 16:49gitNote Added: 0081800
2019-01-16 17:13kgvNote Added: 0081803
2019-01-16 17:13kgvAssigned Tokgv => san
2019-01-16 17:13kgvSeverityminor => major
2019-01-16 17:13kgvStatusnew => resolved
2019-01-16 18:55gitNote Added: 0081804
2019-01-16 21:28gitNote Added: 0081805
2019-01-16 21:41gitNote Added: 0081807
2019-01-16 22:34gitNote Added: 0081808
2019-01-16 22:39kgvNote Edited: 0081803bug_revision_view_page.php?bugnote_id=81803#r20556
2019-01-18 23:49sanNote Added: 0081828
2019-01-18 23:49sanAssigned Tosan => bugmaster
2019-01-18 23:49sanStatusresolved => reviewed
2019-01-21 10:41kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=20567#r20567
2019-01-21 10:58kgvRelationship replacedhas duplicate 0030334
2019-01-21 16:18bugmasterTest case number => Not needed
2019-01-21 16:18bugmasterNote Added: 0081851
2019-01-21 16:18bugmasterStatusreviewed => tested
2019-01-27 11:24bugmasterChangeset attached => occt master 5b377041
2019-01-27 11:24bugmasterStatustested => verified
2019-01-27 11:24bugmasterResolutionopen => fixed
2019-01-28 10:54gitNote Added: 0081896
2019-01-28 10:54gitNote Added: 0081897
2019-01-28 10:54gitNote Added: 0081898
2019-01-28 10:54gitNote Added: 0081899
2019-01-28 10:54gitNote Added: 0081900
2019-02-04 14:11kgvRelationship addedparent of 0030474
2019-02-21 09:44kgvRelationship addedrelated to 0027505
2019-02-21 09:44kgvRelationship addedrelated to 0027502

Notes
(0081738)
git   
2019-01-10 23:14   
Branch CR30439 has been created by kgv.

SHA-1: 717df97ecb5ef1580a384266d23dafe0b34bc78f


Detailed log of new commits:

Author: kgv
Date: Thu Jan 10 23:10:51 2019 +0300

    0030439: Visualization - extend fonts search within Font_FontMgr::FindFont() on Linux
(0081785)
git   
2019-01-15 16:30   
Branch CR30439 has been updated forcibly by kgv.

SHA-1: 8083bc930c68b652479a1616e6a0ed5d86ccac61
(0081787)
git   
2019-01-15 21:25   
Branch CR30439_1 has been created by kgv.

SHA-1: f64d20a0dc2d2b98c755be36969c9fb49a074ea8


Detailed log of new commits:

Author: kgv
Date: Thu Jan 10 23:10:51 2019 +0300

    0030439: Visualization - extend fonts search within Font_FontMgr::FindFont() on Linux
    
    Font_FontMgr has been redesigned to:
    - Store fonts in a map instead a list.
    - Allow mapping multiple fonts to a single alias.
    - Log informative message about usage of non-requested font (fallback).
    
    Obsolete (and most likely broken) font aliases have been removed;
    instead, new aliases of fonts popular on Linux platform have been added.
(0081788)
git   
2019-01-15 23:15   
Branch CR30439_1 has been updated forcibly by kgv.

SHA-1: 725207a8c956f03f5e7b8190bf8c90250033848a
(0081789)
git   
2019-01-15 23:23   
Branch CR30439_1 has been updated forcibly by kgv.

SHA-1: b30e2ae70de22072c2fd9931e14d109839c3feca
(0081790)
git   
2019-01-15 23:27   
Branch CR30439_1 has been updated forcibly by kgv.

SHA-1: a75f0f9c4df1361c548e8b2d82c12f56d83438a7
(0081791)
git   
2019-01-15 23:29   
Branch CR30439_1 has been updated forcibly by kgv.

SHA-1: 88b8d367cde09bf4decda924774990dae5ecf865
(0081792)
git   
2019-01-16 00:10   
Branch CR30439_1 has been updated forcibly by kgv.

SHA-1: a9aaa5c8685418a8b1a0207cbc659807550d4928
(0081794)
git   
2019-01-16 12:06   
Branch CR30439_2 has been created by kgv.

SHA-1: a7682f2daa5dc011f5d43bcca7f94c6d114a16f1


Detailed log of new commits:

Author: kgv
Date: Thu Jan 10 23:10:51 2019 +0300

    0030439: Visualization - extend fonts search within Font_FontMgr::FindFont() on Linux
    
    Font_FontMgr has been redesigned to:
    - Store fonts in a map instead a list.
    - Allow mapping multiple fonts to a single alias.
    - Log informative message about usage of non-requested font (fallback).
    - Register all font files within standard folders on Linux,
      in case of "fonts.dir" is not found.
    - Prefer specific alias ("serif") as default fallback font
      instead of arbitrary one in a system.
    
    A couple of obsolete and broken font aliases have been removed;
    instead, new aliases of fonts popular on Linux platform have been added.
    
    Font_NameOfFont.hxx has been extended with more neutral aliases
    "monospace", "serif", "sans-serif", "cjk" and "korean".
(0081796)
git   
2019-01-16 15:58   
Branch CR30439_3 has been created by kgv.

SHA-1: 9033622e9682109b9b53ba1d7c2f8b0d9347748b


Detailed log of new commits:

Author: kgv
Date: Thu Jan 10 23:10:51 2019 +0300

    0030439: Visualization - extend fonts search within Font_FontMgr::FindFont() on Linux
    
    Font_FontMgr has been redesigned to:
    - Store fonts in a map instead a list.
    - Allow mapping multiple fonts to a single alias.
    - Log informative message about usage of non-requested font (fallback).
    - Register all font files within standard folders on Linux when "fonts.dir" is not found.
    - Prefer specific alias ("serif") as default fallback font instead of arbitrary one in a system.
    
    A couple of obsolete and broken font aliases have been removed;
    instead, new aliases of fonts popular on Linux platform have been added.
    
    Font_NameOfFont.hxx has been extended with more neutral aliases
    "monospace", "serif", "sans-serif", "cjk" and "korean".
    
    Font_FontAspect enumeration values have been renamed Font_FA_ -> Font_FontAspect_
    with old values preserved as alias.
    
    Font_SystemFont has been extended with a list of paths to Font_FontAspect styles,
    so that entire Font Family is now defined within a single Font_SystemFont instance.
(0081797)
git   
2019-01-16 16:04   
Branch CR30439_4 has been created by kgv.

SHA-1: a450d0918b012fa83380407b3f00c7b6bc4423e7


Detailed log of new commits:

Author: kgv
Date: Thu Jan 10 23:10:51 2019 +0300

    0030439: Visualization - extend fonts search within Font_FontMgr::FindFont() on Linux
    
    Font_FontMgr has been redesigned to:
    - Store fonts in a map instead a list.
    - Allow mapping multiple fonts to a single alias.
    - Log informative message about usage of non-requested font (fallback).
    - Register all font files within standard folders on Linux when "fonts.dir" is not found.
    - Prefer specific alias ("serif") as default fallback font instead of arbitrary one in a system.
    
    A couple of obsolete and broken font aliases have been removed;
    instead, new aliases of fonts popular on Linux platform have been added.
    
    Font_NameOfFont.hxx has been extended with more neutral aliases
    "monospace", "serif", "sans-serif", "cjk" and "korean".
    
    Font_FontAspect enumeration values have been renamed Font_FA_ -> Font_FontAspect_
    with old values preserved as alias.
    
    Font_SystemFont has been extended with a list of paths to Font_FontAspect styles,
    so that entire Font Family is now defined within a single Font_SystemFont instance.
    Non-resizable fonts are now ignored by Font Manager.
(0081798)
git   
2019-01-16 16:10   
Branch CR30439_4 has been updated forcibly by kgv.

SHA-1: f07a90d13079bb81136e969444ddfae71da5fd45
(0081800)
git   
2019-01-16 16:49   
Branch CR30439_4 has been updated forcibly by kgv.

SHA-1: 552de65be0c3c0019fb08b12d8bf8beef0724514
(0081803)
kgv   
2019-01-16 17:13   
(edited on: 2019-01-16 22:39)
Patch is ready for review.

http://vm-jenkins-test-12.nnov.opencascade.com:8080/view/CR30439_4-CR30439_4-KGV/ [^]

(0081804)
git   
2019-01-16 18:55   
Branch CR30439_4 has been updated forcibly by kgv.

SHA-1: e0a833f4888f9eba98312d52b7d01902e20d5781
(0081805)
git   
2019-01-16 21:28   
Branch CR30439_4 has been updated forcibly by kgv.

SHA-1: 244e33c18edc77df6cb4f327f220f6c890df05e4
(0081807)
git   
2019-01-16 21:41   
Branch CR30439_4 has been updated forcibly by kgv.

SHA-1: 19931b0fb0083fba0eebf523b90f6b618e1d75e8
(0081808)
git   
2019-01-16 22:34   
Branch CR30439_4 has been updated forcibly by kgv.

SHA-1: c3e94ed5a3d7e591fc799ad5723fb47a05aebb01
(0081828)
san   
2019-01-18 23:49   
Branch CR30439_4 reviewed without remarks.
(0081851)
bugmaster   
2019-01-21 16:18   
Combination -
OCCT branch : CR30439_4 SHA - c3e94ed5a3d7e591fc799ad5723fb47a05aebb01
Products branch : CR30439_4 SHA - 3f4ab45fa1137055d2632215820a5adff68e84e8
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: 16367.920000000104 / 16360.560000000005 [+0.04%]
Products
Total CPU difference: 7159.760000000016 / 7164.9300000000385 [-0.07%]
Windows-64-VC14:
OCCT
Total CPU difference: 17842.296875 / 17757.890625 [+0.48%]
Products
Total CPU difference: 8615.328125 / 8601.296875 [+0.16%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
(0081896)
git   
2019-01-28 10:54   
Branch CR30439 has been deleted by inv.

SHA-1: 8083bc930c68b652479a1616e6a0ed5d86ccac61
(0081897)
git   
2019-01-28 10:54   
Branch CR30439_1 has been deleted by inv.

SHA-1: a9aaa5c8685418a8b1a0207cbc659807550d4928
(0081898)
git   
2019-01-28 10:54   
Branch CR30439_2 has been deleted by inv.

SHA-1: a7682f2daa5dc011f5d43bcca7f94c6d114a16f1
(0081899)
git   
2019-01-28 10:54   
Branch CR30439_3 has been deleted by inv.

SHA-1: 9033622e9682109b9b53ba1d7c2f8b0d9347748b
(0081900)
git   
2019-01-28 10:54   
Branch CR30439_4 has been deleted by inv.

SHA-1: c3e94ed5a3d7e591fc799ad5723fb47a05aebb01