MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0030439Open CASCADE[OCCT] OCCT:Visualizationpublic2019-01-10 23:132019-01-18 23:49
Reporterkgv 
Assigned Tobugmaster 
PrioritynormalSeveritymajor 
StatusreviewedResolutionopen 
PlatformOSOS Version
Product Version[OCCT] 6.5.4 
Target Version[OCCT] 7.4.0*Fixed in Version 
Summary0030439: Visualization - extend fonts search within Font_FontMgr::FindFont() on Linux
DescriptionModern Linux distributions do not provide fonts using X11 mechanism, so that it is desired registering other fonts available in system.
Steps To Reproduce
pload MODELING VISUALIZATION
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
TagsNo tags attached.
Test case number
Attached Files

- Relationships
related to 0030334feedbackabv Visualization - missing fonts are not properly reported by Font_FontMgr::FindFont() 
related to 0025978closedbugmaster Visualization - setup font aliases for Android 
related to 0023466closeddbv Move OSD_FontMgr class outside TKernel 

-  Notes
(0081738)
git (administrator)
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 (administrator)
2019-01-15 16:30

Branch CR30439 has been updated forcibly by kgv.

SHA-1: 8083bc930c68b652479a1616e6a0ed5d86ccac61
(0081787)
git (administrator)
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 (administrator)
2019-01-15 23:15

Branch CR30439_1 has been updated forcibly by kgv.

SHA-1: 725207a8c956f03f5e7b8190bf8c90250033848a
(0081789)
git (administrator)
2019-01-15 23:23

Branch CR30439_1 has been updated forcibly by kgv.

SHA-1: b30e2ae70de22072c2fd9931e14d109839c3feca
(0081790)
git (administrator)
2019-01-15 23:27

Branch CR30439_1 has been updated forcibly by kgv.

SHA-1: a75f0f9c4df1361c548e8b2d82c12f56d83438a7
(0081791)
git (administrator)
2019-01-15 23:29

Branch CR30439_1 has been updated forcibly by kgv.

SHA-1: 88b8d367cde09bf4decda924774990dae5ecf865
(0081792)
git (administrator)
2019-01-16 00:10

Branch CR30439_1 has been updated forcibly by kgv.

SHA-1: a9aaa5c8685418a8b1a0207cbc659807550d4928
(0081794)
git (administrator)
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 (administrator)
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 (administrator)
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 (administrator)
2019-01-16 16:10

Branch CR30439_4 has been updated forcibly by kgv.

SHA-1: f07a90d13079bb81136e969444ddfae71da5fd45
(0081800)
git (administrator)
2019-01-16 16:49

Branch CR30439_4 has been updated forcibly by kgv.

SHA-1: 552de65be0c3c0019fb08b12d8bf8beef0724514
(0081803)
kgv (developer)
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 (administrator)
2019-01-16 18:55

Branch CR30439_4 has been updated forcibly by kgv.

SHA-1: e0a833f4888f9eba98312d52b7d01902e20d5781
(0081805)
git (administrator)
2019-01-16 21:28

Branch CR30439_4 has been updated forcibly by kgv.

SHA-1: 244e33c18edc77df6cb4f327f220f6c890df05e4
(0081807)
git (administrator)
2019-01-16 21:41

Branch CR30439_4 has been updated forcibly by kgv.

SHA-1: 19931b0fb0083fba0eebf523b90f6b618e1d75e8
(0081808)
git (administrator)
2019-01-16 22:34

Branch CR30439_4 has been updated forcibly by kgv.

SHA-1: c3e94ed5a3d7e591fc799ad5723fb47a05aebb01
(0081828)
san (developer)
2019-01-18 23:49

Branch CR30439_4 reviewed without remarks.

- Issue History
Date Modified Username Field Change
2019-01-10 23:13 kgv New Issue
2019-01-10 23:13 kgv Assigned To => kgv
2019-01-10 23:13 kgv Relationship added related to 0030334
2019-01-10 23:14 git Note Added: 0081738
2019-01-15 16:30 git Note Added: 0081785
2019-01-15 21:03 kgv Steps to Reproduce Updated View Revisions
2019-01-15 21:25 git Note Added: 0081787
2019-01-15 23:15 git Note Added: 0081788
2019-01-15 23:23 git Note Added: 0081789
2019-01-15 23:27 git Note Added: 0081790
2019-01-15 23:29 git Note Added: 0081791
2019-01-16 00:10 git Note Added: 0081792
2019-01-16 00:41 kgv Relationship added related to 0025978
2019-01-16 00:42 kgv Relationship added related to 0023466
2019-01-16 00:42 kgv Product Version 7.3.0 => 6.5.4
2019-01-16 12:06 git Note Added: 0081794
2019-01-16 15:58 git Note Added: 0081796
2019-01-16 16:04 git Note Added: 0081797
2019-01-16 16:10 git Note Added: 0081798
2019-01-16 16:49 git Note Added: 0081800
2019-01-16 17:13 kgv Note Added: 0081803
2019-01-16 17:13 kgv Assigned To kgv => san
2019-01-16 17:13 kgv Severity minor => major
2019-01-16 17:13 kgv Status new => resolved
2019-01-16 18:55 git Note Added: 0081804
2019-01-16 21:28 git Note Added: 0081805
2019-01-16 21:41 git Note Added: 0081807
2019-01-16 22:34 git Note Added: 0081808
2019-01-16 22:39 kgv Note Edited: 0081803 View Revisions
2019-01-18 23:49 san Note Added: 0081828
2019-01-18 23:49 san Assigned To san => bugmaster
2019-01-18 23:49 san Status resolved => reviewed


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker