I have a legacy C++ program I have to maintain. We runs on Windows 7. Recently I encountered a bug in a pdf generation section of the code.
I change Windows' Language for non-unicode programs
to Korean (Korea)
, restart, then run the app. In the pdf generation code, there's this line:
pdf_font = pdf.load_font(L"Malgun Gothic", L"unicode", L"");
(I have no idea what goes inside pdf.load_font
)
pdf_font
here is -1
. If the Language for non-unicode programs
is English, there's no problem and pdf_font
contains a valid value.
It's as if setting Language for non-unicode programs
to Korean (Korea)
hides Malgun Gothic
font which can be seen before.
I'm not sure if this is a Windows issue or library issue. Any pointers are welcome.