dotnet / dotnet/wpf

WPF Font Scaling Problem with Render Target Bitmap at Format1bppIndexed

Open
#346 15 comments 0 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

I am using .Net framework 4.6.1 and faced following scaling problem in Arial Font.

Below image is generated with same program at DPI 96 for [100% windows 10 Scaling] and

DPI 120 for [125% recommended windows 10 Scaling]

In the result we can clearly see non homogeneity in rendering

![Image:58888-resultarial.png](https://developercommunityapi.westus.cloudapp.azure.com/storage/attachments/58888-resultarial.png)

I am also attaching project file,

You can experience same with program and executable (Its based on Arial Font)
Steps to reproduce:
Drag/move canvas elements on left and you will see Format1bppIndexed Image

image generated on left side.

All I want is to have homogeneous and smooth text rendering under different windows 10 scaling when rendering target bitmap @ Format1bppIndexed from WPF Element.

I am also attaching solution for reproducing,

scalingissuewpf.zip

_This issue has been moved from https://developercommunity.visualstudio.com/content/problem/449544/wpf-font-scaling-problem-with-render-target-bitmap.html
VSTS ticketId: 789260_
_These are the original issue comments:_
(no comments)
_These are the original issue solutions:_
(no solutions)

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.