Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

更改系统字体列表的读取方式以避免崩溃 #554

Merged
merged 1 commit into from
Nov 2, 2021

Conversation

JasonWei512
Copy link
Contributor

@JasonWei512 JasonWei512 commented Oct 29, 2021

修复 #291

PR 类型

这个 PR 的目的是什么?

  • Bug 修复

当前行为是什么?

在部分设备上,Win2D 的 CanvasFontSet.GetSystemFontSet() 会抛出无法被 catch 的 AccessViolationException ,导致无法获取系统字体列表,进而导致应用崩溃。

新的行为是什么?

改用 CanvasTextFormat.GetSystemFontFamilies() 获取系统字体列表,避免应用崩溃。

PR 检查清单

请检查你的 PR 是否满足以下要求:

  • 应用成功启动
  • 文件头已经被添加至所有源文件中
  • 包含破坏式更新

备注

@CsyBarry
Copy link

最新版仍遇到此问题

@Richasy
Copy link
Owner

Richasy commented Nov 2, 2021

最新版仍遇到此问题

你指的是release中的最新版还是当前PR版本?

@Richasy Richasy linked an issue Nov 2, 2021 that may be closed by this pull request
13 tasks
@Richasy Richasy added the bug 🐛 异常或错误使得应用不能按预期工作 label Nov 2, 2021
@Richasy Richasy merged commit c606355 into Richasy:main Nov 2, 2021
@Richasy Richasy added this to the 11月更新 milestone Nov 2, 2021
@Richasy Richasy linked an issue Nov 2, 2021 that may be closed by this pull request
@CsyBarry
Copy link

CsyBarry commented Nov 2, 2021

最新版仍遇到此问题

你指的是release中的最新版还是当前PR版本?

2.2110.5.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug 🐛 异常或错误使得应用不能按预期工作
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]重新打开之后,点击第一个视频会卡顿一会 [Bug]打开视频就闪退
3 participants