Does "insertText" not support Chinese fonts? How do I add Chinese fonts to my images?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
cui,xingxing
am 13 Sep. 2021
Kommentiert: cui,xingxing
am 13 Sep. 2021
Currently, only fonts with "asciil" code are supported, but how can I do it to support Chinese fonts?
0 Kommentare
Akzeptierte Antwort
Chunru
am 13 Sep. 2021
I = imread('peppers.png');
% Find out the Chinese Fonts installed in your system
% listTrueTypeFonts
I=insertText(I, [10 20],'中文', 'Font', 'SimSun');
imshow(I)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Color Space Formatting and Conversions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!