Archived issue #0025978
Visualization - setup font aliases for Android
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.
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.
[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.
Patch is ready for review.
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
[revision removed]
Detailed log of new commits:
Author: Author
Date: Wed Mar 25 11:24:12 2015 +0300
add missing checks for core profile
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.
[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.
Branch [archived branch] has been updated forcibly by Author.
[revision removed]
[revision removed]
Branch CR25978_1 reviewed without remarks, ready for testing.
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%]
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%]
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.
[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.
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.
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.
Results of test-case 3rdparty fonts A2 re-testing are OK:
http://occt-tests/CR25978-1-master-occt-64/Debian60-64/3rdparty/fonts/A2.html
http://occt-tests/CR25978-1-master-occt-64/Windows-64-VC10/3rdparty/fonts/A2.html
http://occt-tests/CR25978-1-master-occt-64/Debian60-64/3rdparty/fonts/A2.html
http://occt-tests/CR25978-1-master-occt-64/Windows-64-VC10/3rdparty/fonts/A2.html
Branch [archived branch] has been deleted by Author.
[revision removed]
[revision removed]
Branch [archived branch] has been deleted by Author.
[revision removed]
[revision removed]
Related records
- #0032461 · parent of · closedVisualization, OpenGl_Text - expensive call of glGetTexEnviv/glTexEnvi within OpenGL Compatible Profile
- #0027505 · related to · closedVisualization, Font_FontMgr - do not look for fonts.dir on OS X
- #0030439 · related to · closedVisualization - extend fonts search within Font_FontMgr::FindFont() on Linux
- #0025146 · child of · closedPorting to Android