If you are using ChartDirector 7, it can support user friendly font names, which is the font names you see when choose the font in Microsoft Word. For example, instead of using "times.ttf", you can use "Time News Roman".
I do not have Korean Windows or your font, so I do not know what is the correct font name. I think some possibilities are:
You can open Microsoft Word (or any GUI program that allows you to select the font) and check what is the name of the font.
As ChartDirector expects UTF8 encoding, please use something like:
I tried like the sample you suggested, but it didn't work
ex) setLabelStyle(TCHARtoUTF8(_T("현대하모니 M")), 10, color, 0)
addTitle is same
c.addTitle(TCHARtoUTF8(_T("현대하모니 M")), TCHARtoUTF8(_T("현대하모니 M.TTF")), 20, 0, 0xFFFFFF); // use font filename
c.addTitle(TCHARtoUTF8(_T("현대하모니 M")), TCHARtoUTF8(_T("현대하모니 M")), 20, 0, 0xFFFFFF); // use fontname
=> 2 case's result is "ㅁㅁㅁㅁㅁ M" Korean Language is broken
I change font filename to English ("현대하모니 M.TTF" -> "aaaa.TTF")
c.addTitle(TCHARtoUTF8(_T("현대하모니 M")), TCHARtoUTF8(_T("aaaa.TTF")), 20, 0, 0xFFFFFF); => result is "현대하모니 M "
is ChartDirector 6 not support?
If chart director 6 is supported, I will look for issues in other my codes.
User friendly font names are only supported since ChartDirector 7. ChartDirector 6 can only use ASCII font filenames.
The easiest way is to upgrade to ChartDirector 7. But if this is not desirable, you can use the "short pathname" for the file instead of the normal filename.
For your case, please first verify if your font filename is really in Korean and the font file is in "c:WindowsFonts". The font name shown in "c:WindowsFonts" is not the filename. To obtain the filename, select a font, right click and select "Properties". I have attached two screen shots for your reference. Please verify the font name is really Korean, and the font is in "c:windowsfonts" (or [windows]fonts, where [windows] is the windows OS directory).
After the font name is in fact in Korean, in ChartDirector 6, you can use the short pathname instead. The windows API is GetShortPathName. See:
(Long time ago, windows filename can have at most 8 ASCII characters, and 3 ASCII characters for the file extension. Modern file systems support longer filenames, but for backwards compatibility, there is also an automatically generated short filename for each file. The short filename is normally not visible, but you can use GetShortPathName to get it.