Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font appears broken and low-quality when zooming out #294

Open
hooyuser opened this issue May 24, 2024 · 1 comment
Open

Font appears broken and low-quality when zooming out #294

hooyuser opened this issue May 24, 2024 · 1 comment

Comments

@hooyuser
Copy link

hooyuser commented May 24, 2024

Describe the bug
Hello, I am experiencing an issue with the preview plugin where the font quality significantly degrades when I zoom out. There is noticeable aliasing phenomenon (like the common downsampling aliasing) that causes the font to be distorted.

Capture_lowres_preview
typst-preview extension

For example, the top half of the letter “t” becomes disconnected. Please refer to the attached image below that compares this with the rendering result from a PDF renderer under a similar zoom level.

Capture_lowres_pdf
pdf renderer

It’s evident that the PDF renderer produces a clearer and more recognizable output.

When zooming in, however, the font rendering is quite clear. The attached images below show the rendering effects from both the PDF renderer and the typst-preview.

Capture_preview
typst-preview extension (Zoom in)

Capture_pdf
pdf renderer (Zoom in)

Could you please look into this issue? Thank you!

Package/Software version:

VSCode version(Help -> About):

Version: 1.89 .1 (user setup)
Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685
Date: 2024-05-07T05:13:33.891Z (2 wks ago)
Electron: 28.2 .8
ElectronBuildld: 27744544
Chromium: 120.0 .6099 .291
Node.js: 18.18 .2
V8: 12.0 .267 .19 -electron. 0
OS: Windows_NT x64 10.0.19045

Additional details:

  • Font: New Computer Modern
  • Display resolution: 1920x1080
  • typst-preview extension version: v0.11.6
@Enter-tainer
Copy link
Owner

typst preview currently doesnt have high quality sub pixel rendering. will be solved once we switch to new rendering method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants