Modify: 重新下載英文對應字體,以及修改位置
This commit is contained in:
parent
8166fc30ae
commit
0c5abc203c
@ -207,7 +207,7 @@ void BirthdayCreater::generaImageFromCSV(Name_Type_e type, const QString& filena
|
|||||||
//TODO: add English world
|
//TODO: add English world
|
||||||
QGraphicsTextItem* eng_word_item = new QGraphicsTextItem(name_info.name_eng);
|
QGraphicsTextItem* eng_word_item = new QGraphicsTextItem(name_info.name_eng);
|
||||||
QFont _new_font = QFont(EnglisthFont());
|
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);
|
int _new_size = getFontSizebyStr(_new_font, 120, 480, name_info.name_eng);
|
||||||
_new_font.setPixelSize(_new_size);
|
_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->setDefaultTextColor(font_color);
|
||||||
|
|
||||||
eng_word_item->setRotation(-90);
|
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);
|
scene.addItem(eng_word_item);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#define FONT_PATH ":/NameCreater/_exp/DFYuanStd-W8.otf"
|
#define FONT_PATH ":/NameCreater/_exp/DFYuanStd-W8.otf"
|
||||||
#define TOWEL_FONT_PATH ":/NameCreater/_exp/W1.ttc"
|
#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 FONT_SIZE 120
|
||||||
#define VERSION "v2.1.0"
|
#define VERSION "v2.1.0"
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE QtCreatorProject>
|
<!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>
|
<qtcreator>
|
||||||
<data>
|
<data>
|
||||||
<variable>EnvironmentId</variable>
|
<variable>EnvironmentId</variable>
|
||||||
|
|||||||
@ -66,6 +66,6 @@
|
|||||||
<file>resource/five/ng_3.jpg</file>
|
<file>resource/five/ng_3.jpg</file>
|
||||||
<file>resource/five/ng_4.jpg</file>
|
<file>resource/five/ng_4.jpg</file>
|
||||||
<file>resource/five/ng_5.jpg</file>
|
<file>resource/five/ng_5.jpg</file>
|
||||||
<file>_exp/AcuminVariableConcept.otf</file>
|
<file>_exp/AcuminVariableConcept-Medium.ttf</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
BIN
NameCreater/_exp/AcuminVariableConcept-Medium.ttf
Normal file
BIN
NameCreater/_exp/AcuminVariableConcept-Medium.ttf
Normal file
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user