MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #31079 All Revisions ] Back to Issue ]
Summary 0031079: Visualization - embed minimal fallback font
Revision 2019-10-18 10:22 by kgv
Description Some platforms do not provide access to system font files (iOS, WASM), while on others there is some risk not finding location of system fonts (Linux).
In this case, 3D Viewer will be unable displaying any text if application will not package its own font file and register it within OCCT font manager.

Although packaging font files with application is unavoidable in general on such platforms (it is up to application to decide how text should look and which UNICODE ranges are necessary to handle), missing text in 3D viewer is an issue for first development steps and for debugging.
In particular, X/Y/Z labels in V3d_Trihedron, box labels in AIS_ViewCube, performance counters in OpenGl viewer requires minimal sub-set of Latin letters, and it will be good providing them.

For this purpose, it is proposed embedding a single fallback font into TKService. As this font will be rarely used, it is suggested compressing file with only Latin1 symbols.

DejaVu font is proposed for this purpose, as its extended MIT License shouldn't cause embedding issues.
Revision 2019-10-18 10:12 by kgv
Description Some platforms do not provide access to system font files (iOS, WASM), while on others there is some risk not finding location of system fonts (Linux).
In this case, 3D Viewer will be unable displaying any text if application will not package its own font file and register it within OCCT font manager.

Although packaging font files with application is unavoidable in general on such platforms (it is up to application to decide how text should look and which UNICODE ranges are necessary to handle), missing text in 3D viewer is an issue for first development steps and for debugging.
In particular, X/Y/Z labels in V3d_Trihedron, box labels in AIS_ViewCube, performance counters in OpenGl viewer requires minimal sub-set of Latin letters, and it will be good providing them.

For this purpose, it is proposed embedding a single fallback font into TKService. As this font will be rarely used, it is suggested compressing file with only Latin1 symbols.


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker