Xojo Developer Conference
Join us from 25th to 27th April 2018 in Denver.

Platforms to show: All Mac Windows Linux Cross-Platform

FAQ.How to get fonts to load in charts on Linux?
Feedback.

Answer: Please use the SetFontSearchPath method in the CDBaseChartMBS class to specify where your fonts are.
Example:
if TargetLinux then
CDBaseChartMBS.SetFontSearchPath "/usr/share/fonts/truetype"
else
// on Mac and Windows we use system fonts.
end if
Notes:
On Mac OS X and Windows, the fonts are loaded from the system's font folder.

e.g. if you use ubuntu, you can install the ttf-mscorefonts-installer package and call this method with "/usr/share/fonts/truetype/msttcorefonts" as the path. No backslash on the end of a path, please.




Links
MBS Xojo Chart Plugins