update 证书优化

This commit is contained in:
P3ngSaM 2022-03-09 17:00:01 +08:00
parent d0e1cda98e
commit 43214e22e4
2 changed files with 2 additions and 2 deletions

View File

@ -49,9 +49,9 @@ class CertificateGenerator:
self.doc.setFont('SIMSUN', 12, leading=5) self.doc.setFont('SIMSUN', 12, leading=5)
self.doc.drawString(2.8 * inch, 433, '统一社会信用代码:{}'.format(self.text_data['统一社会信用代码'])) self.doc.drawString(2.8 * inch, 433, '统一社会信用代码:{}'.format(self.text_data['统一社会信用代码']))
# ESG得分 # ESG得分
self.doc.setFont('SIMSUN', 12, leading=5) self.doc.setFont('SourceHanSerifCN-Bold', 12, leading=5)
self.doc.setFillColor('#B79249') self.doc.setFillColor('#B79249')
self.doc.drawString(5.35 * inch, 357, '{}'.format(self.text_data['ESG得分'])) self.doc.drawString(5.84 * inch, 366, '{}'.format(self.text_data['ESG得分']))
# 评价等级 # 评价等级
self.doc.setFont('SourceHanSerifCN-Bold', 35) self.doc.setFont('SourceHanSerifCN-Bold', 35)
self.doc.drawString(3.2 * inch, 285, '{}级企业'.format(self.text_data['评价等级'])) self.doc.drawString(3.2 * inch, 285, '{}级企业'.format(self.text_data['评价等级']))

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 191 KiB