Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/drawshape/drawTools/ctexttool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ void CTextTool::initFontFamilyWidget(QComboBox *fontHeavy)

// 设置默认的字体类型为思源宋黑体,没有该字体则选择系统第一个默认字体
QFontDatabase fontbase;
QString sourceHumFont = QObject::tr("Source Han Sans CN");
QString sourceHumFont = QStringLiteral("Source Han Sans CN");
if (!fontbase.families().contains(sourceHumFont)) {
qCDebug(drawShapeLog) << "Source Han Sans CN font not found, using first available font";
sourceHumFont = fontbase.families().first();
Expand Down
5 changes: 0 additions & 5 deletions translations/deepin-draw_zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -803,11 +803,6 @@ Please save it in another name or close that file and try again.</source>
<source>File not saved</source>
<translation>文件未保存</translation>
</message>
<message>
<location filename="../src/drawshape/drawTools/ctexttool.cpp" line="352"/>
<source>Source Han Sans CN</source>
<translation>思源黑体 CN</translation>
</message>
<message>
<location filename="../src/drawshape/drawTools/crecttool.cpp" line="72"/>
<source>Stroke</source>
Expand Down
Loading