View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011168 | mantisbt | reports | public | 2009-11-13 00:49 | 2016-07-09 19:28 |
Reporter | squarebox | Assigned To | vboctor | ||
Priority | normal | Severity | block | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Product Version | 1.2.0rc2 | ||||
Summary | 0011168: Graph plugin doesn't gracefully handle Asian fonts that lack a bold style | ||||
Description | In customizing the mantis graph plugin to support east-asian fonts i found that the plugin would fail if the FS_BOLD value wasn't specified, which is seemingly the case for jpgraph's implementation of the fonts. Which required me to edit to the jpgraph_ttf.inc.php file to work around this. Would it be possible to have to the graph plugin use FS_NORMAL when FS_BOLD is non-existent or set to null? | ||||
Additional Information | jprgaph_ttf.inc.php JpGraphs implementation of PMincho font
| ||||
Tags | No tags attached. | ||||
Attached Files | |||||
After 3 years of silence I'm not sure if you're still interested in having feedback on your request, but anyway here it goes... I personally think that a "clean" fallback to FS_NORMAL should ideally be handled by JPGraph, rather than them just throwing an exception and aborting the graph's generation. That said, JPGraph development seems dead for over 2 years, so I see little chance of anything happening in this area. Of course we can also work around this in MantisBT either by sticking to FS_NORMAL, or by defining a function to apply a font style in graph_api.php, like this (tested with JPGraph 3.5):
Then, various calls to SetFont() can be replaced as follows:
Let me know if that works for you, and if you complete a revision of the MantisGraph plugin with Asian fonts compatibility, upload it here and I'll see if I can add it to core. |
|