DiscussionsIssue archiveOCCT:Visualization

Archived issue #0025978

Visualization - setup font aliases for Android

Open CASCADEOCCT:Visualizationclosed12 public notes

Search issues

Description

Android does not use traditional Linux schemes for system fonts, and thus Font_FontMgr should be improved.

Steps to reproduce

N/A

Public activity

12 archived notes

Participants are labeled by their role within this record.

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

[revision removed]


Detailed log of new commits:

Author: Author
Date: Tue Mar 24 20:39:50 2015 +0300

    0025978: Visualization - setup font aliases for Android
    
    Font_FontMgr - setup system fonts "Droid Sans Mono", "Droid Serif" and "Roboto" as aliases to "Courier", "Times" and "Arial" on Android.
    Locate Android system fonts in directory "/system/fonts".
    
    OpenGl_Text::FindFont() - print error message on missed fonts.
    OpenGl_Text::render() - allow straightforward font rendering on OpenGL ES.
02Author
Patch is ready for review.
03Commenter 2
Branch [archived branch] has been updated by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Wed Mar 25 11:24:12 2015 +0300

    add missing checks for core profile

04Commenter 2
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Wed Mar 25 11:24:52 2015 +0300

    0025978: Visualization - setup font aliases for Android
    
    Font_FontMgr - setup system fonts "Droid Sans Mono", "Droid Serif" and "Roboto" as aliases to "Courier", "Times" and "Arial" on Android.
    Locate Android system fonts in directory "/system/fonts".
    
    OpenGl_Text::FindFont() - print error message on missed fonts.
    OpenGl_Text::render() - allow straightforward font rendering on OpenGL ES.
05Commenter 2
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
06Commenter 6
Branch CR25978_1 reviewed without remarks, ready for testing.
07Commenter 7
Dear Commenter 1,

Branch CR25978_1 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested.
[revision removed]

Number of compiler warnings:
occt component:
   Linux: 18 (18 on master)
   Windows: 0 (0 on master)
products component:
   Linux: 11 (11 on master)
   Windows: 4 (4 on master)

Regressions/Differences:
http://occt-tests/CR25978-1-master-occt-64/Windows-64-VC10/summary.html
3rdparty fonts A2
bugs vis bug21091_2

Testing cases:
Not needed

Testing on Linux:
Total MEMORY difference: 87485955 / 88604751 [-1.26%]
Total CPU difference: 52481.200000000004 / 53186.43000000024 [-1.33%]

Testing on Windows:
Total MEMORY difference: 87485955 / 88604751 [-1.26%]
Total CPU difference: 52481.200000000004 / 53186.43000000024 [-1.33%]

08Commenter 2
Branch [archived branch] has been updated by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Mon Mar 30 15:28:18 2015 +0300

    Do not use "Webdings" in tests.
    Drop duplicating test case bugs/vis/bug21091_2.

09Author
Dear Commenter 1,
please check updated test case (no need to rebuild sources).

> Regressions/Differences:
> 3rdparty fonts A2
> bugs vis bug21091_2
these test cases are used font "Webdings" which has no letters on Windows (see one missing label "OpenCascade" while comparing snapshots on Windows and Linux) thus does not make sense in this context. Test case has been updated within the patch. bugs/vis/bug21091_2 just duplicates the same test case and has been removed.

10Commenter 10
11Commenter 2
Branch [archived branch] has been deleted by Author.

[revision removed]
12Commenter 2
Branch [archived branch] has been deleted by Author.

[revision removed]

Related records