Skip to content

Commit

Permalink
Dev/1050 (#56)
Browse files Browse the repository at this point in the history
* fix: 窗口尺寸调整

 窗口尺寸调整,从820*580调整最小尺寸为680*300。默认尺寸依然是820*580。

Log: 窗口尺寸调整

Task: https://pms.uniontech.com/task-view-108405.html
Change-Id: Ie879eb4ade4e3aa468347e1c7801b89590baf5ad

* fix: DBXC000183 华为擎云L410 klu-1040 ARM 在麒麟990机器上用字体管理器安装完长城的大小标宋后显示为韩文

 字体getFontInfo接口中获取到的familyName可能是"????",导致安装小标宋体后,无法安装大标宋体。
 故,将此前修改的获取正确名称的接口提到getFontInfo接口中执行,可保证后续程序中获取信息的正确性。

Log: DBXC000183 华为擎云L410 klu-1040 ARM 在麒麟990机器上用字体管理器安装完长城的大小标宋后显示为韩文

Bug: https://pms.uniontech.com/bug-view-122911.html
Change-Id: I3338126ceab5dc61cbc15a831075744674ff843f

* fix: 首次预览字体后关闭预览框,再次预览同一文件,预览窗口显示空白

 改写DFontWidget::sizeHint接口

Log: 首次预览字体后关闭预览框,再次预览同一文件,预览窗口显示空白

Bug: https://pms.uniontech.com/bug-view-113606.html
Change-Id: Ic868e8466721746e7df59e3985a99b2f3e755457
  • Loading branch information
LiuLibang authored Apr 21, 2022
1 parent 277dc7c commit 212046f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libdeepin-font-manager/dfontwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ void DFontWidget::setFileUrl(const QString &url)
m_thread->start();
}

QSize DFontWidget::sizeHint() const
{
return QSize(FIXED_WIDTH, FIXED_HEIGHT);
}

/*************************************************************************
<Function> handleFinished
<Description> 显示预览结果
Expand Down
1 change: 1 addition & 0 deletions libdeepin-font-manager/dfontwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class DFontWidget : public QWidget
~DFontWidget() override;
//传入字体路径
void setFileUrl(const QString &url);
QSize sizeHint() const override;
protected:

private:
Expand Down

0 comments on commit 212046f

Please sign in to comment.