Platforms to show: All Mac Windows Linux Cross-Platform

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

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;/usr/share/fonts/truetype/msttcorefonts"
else
// on Mac and Windows we use system fonts.
end if

// also you can later switch default fonts:

dim Chart as CDBaseChartMBS // your chart

#If TargetARM And TargetLinux Then
// use specific fonts on Linux on Raspberry Pi
Call Chart.setDefaultFonts("/usr/share/fonts/truetype/piboto/PibotoLt-Regular.ttf","/usr/share/fonts/truetype/piboto/PibotoLtBold.ttf","/usr/share/fonts/truetype/piboto/PibotoLtItalic.ttf","/usr/share/fonts/truetype/piboto/PibotoLtBoldItalic.ttf")
#EndIf

On macOS, iOS 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.


The biggest plugin in space...