Modify: 重新下載英文對應字體,以及修改位置

This commit is contained in:
shouchih_chen 2023-05-17 06:50:27 +08:00
parent 8166fc30ae
commit 0c5abc203c
6 changed files with 5 additions and 5 deletions

View File

@ -207,7 +207,7 @@ void BirthdayCreater::generaImageFromCSV(Name_Type_e type, const QString& filena
//TODO: add English world
QGraphicsTextItem* eng_word_item = new QGraphicsTextItem(name_info.name_eng);
QFont _new_font = QFont(EnglisthFont());
_new_font.setWeight(QFont::ExtraBold);
_new_font.setWeight(QFont::ExtraLight);
int _new_size = getFontSizebyStr(_new_font, 120, 480, name_info.name_eng);
_new_font.setPixelSize(_new_size);
@ -216,7 +216,7 @@ void BirthdayCreater::generaImageFromCSV(Name_Type_e type, const QString& filena
eng_word_item->setDefaultTextColor(font_color);
eng_word_item->setRotation(-90);
eng_word_item->setPos(label_item->x() + 140.0 - rect.height()/2.0, label_item->y() + 1580 - chrismas_y_offset + rect.width()/2);
eng_word_item->setPos(label_item->x() + 160.0 - rect.height()/2.0, label_item->y() + 1580 - chrismas_y_offset + rect.width()/2);
scene.addItem(eng_word_item);

View File

@ -19,7 +19,7 @@
#define FONT_PATH ":/NameCreater/_exp/DFYuanStd-W8.otf"
#define TOWEL_FONT_PATH ":/NameCreater/_exp/W1.ttc"
#define ENGLISH_FONT_PATH ":/NameCreater/_exp/AcuminVariableConcept.otf"
#define ENGLISH_FONT_PATH ":/NameCreater/_exp/AcuminVariableConcept-Medium.ttf"
#define FONT_SIZE 120
#define VERSION "v2.1.0"

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 7.0.2, 2023-05-16T20:01:59. -->
<!-- Written by QtCreator 7.0.2, 2023-05-17T06:47:25. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>

View File

@ -66,6 +66,6 @@
<file>resource/five/ng_3.jpg</file>
<file>resource/five/ng_4.jpg</file>
<file>resource/five/ng_5.jpg</file>
<file>_exp/AcuminVariableConcept.otf</file>
<file>_exp/AcuminVariableConcept-Medium.ttf</file>
</qresource>
</RCC>

Binary file not shown.