그래프 plot 시에 한글 지원 문제
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Matlab R2018b 쓰고 있는 유저입니다.
그래프 plot 시에 한글을 축제목이나 label에 적을 시 정상적으로 출력되지 않는 문제가 있는데요.
어떻게 해결할 수 있을 지 궁금합니다.
2 Commenti
Risposte (1)
Angelo Yeo
il 26 Dic 2023
Unfortunately, there is no good way to work around problem other than to set the following properties of charts with a set(0, "DefaultX") call in startup.m
set (0, 'defaultUicontrolFontName' , '맑은고딕')
set (0, 'defaultUitableFontName' , '맑은고딕')
set (0, 'defaultAxesFontName' , '맑은고딕')
set (0, 'defaultTextFontName' , '맑은고딕')
set (0, 'defaultUipanelFontName' , '맑은고딕')
But, the ability to set the properties of charts with a set(0, "DefaultX") call in startup.m is not available in Charts like confusionchart (also heatmap, wordcloud, geobubble etc) don't respect the default axes settings because they aren't axes.
Fundamentally, the problem occurs when you have Helvetica font installed on your machine. Once removing the font, it will solve the problem. However, Helvetica is a licensed font which you presumably paid for, either directly, or as part of another application.
What is happening is that the graphics code tries to use Helvetica. If Helvetica is not available we substitute the Java sansserif font. These are "logical" fonts so get mapped to appropriate "physical" fonts on the system. This mapping is handled by fontconfig.properties file. However, if Helvetica is available it will use the installed Helvetica font -- which does not support Korean characters.
If you decide to remove Helvetica font installed on your machine, here is the way to remove to resolve this issue thoroughly.
1. Run CMD as administrator
2. In the Command Prompt, delete the all following Helvetica font names which can be checked in the properties window by right click from each Helvetica fonts under the C:\Windows\Fonts\Helvetica folder.
14461.ttf
14462.ttf
14460.ttf
14459.ttf
13726.ttf
13728.ttf
13729.ttf
13727.ttf
14526.ttf
14528.ttf
14529.ttf
14527.ttf
3. Go to the following registry table of windows Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes
4. Change the Data from Helvetica to Arial while keeping the name as Helvetica by right click and choosing Modify.
5.Restart MATLAB to see whether it works.
0 Commenti
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!