dotnet / dotnet/wpf

strange bug in FontFamily from ttf file

Open
#2,937 0 comments 3 reactions 0 assignees View on GitHub
Bug
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

* .NET Core Version: 3.1
* Windows version: Windows 10 (Version 10.0.18363.778)
* Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes


**Problem description:**
I have to set TextBlock FontFamily from a static-name ttf file. everything is ok until i replace it programatically with another font file (it's about temp of some theme structure); then font callBacks to default. when i restart program it works again.

**Actual behavior:**
showing default font after replacing font file.

**Expected behavior:**
address static path to file and use, even if the file is not the primary.

**Minimal repro:**
https://github.com/qwerty13/Wpf-local-font-bug

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.