Does "insertText" not support Chinese fonts? How do I add Chinese fonts to my images?

조회 수: 12 (최근 30일)
Currently, only fonts with "asciil" code are supported, but how can I do it to support Chinese fonts?

채택된 답변

Chunru
Chunru 2021년 9월 13일
I = imread('peppers.png');
% Find out the Chinese Fonts installed in your system
% listTrueTypeFonts
I=insertText(I, [10 20],'中文', 'Font', 'SimSun');
imshow(I)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Color Space Formatting and Conversions에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by