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

[FrameBuffer] Expose the DisplayScale property on the builder #16742

Open
jeromelaban opened this issue May 15, 2024 · 1 comment
Open

[FrameBuffer] Expose the DisplayScale property on the builder #16742

jeromelaban opened this issue May 15, 2024 · 1 comment
Labels
area/framebuffer Categorizes an issue or PR as relevant to the Linux Framebuffer platform/linux 🐧 Categorizes an issue or PR as relevant to Linux platforms project/core-tools 🛠️ Categorizes an issue or PR as relevant to core and tools

Comments

@jeromelaban
Copy link
Member

When I debug my app with WSL2, my app renders with small text.

I saw this information on Uno doc, but I don't know where to call FrameBufferHost.DisplayScale.
image

Originally posted by @ArchieCoder in #16736

@jeromelaban jeromelaban changed the title When I debug my app with WSL2, my app renders with small text. [FrameBuffer] Expose the DisplayScale property on the builder May 15, 2024
@jeromelaban
Copy link
Member Author

Thanks for the report. Indeed, this is not accessible from the SkiaBuilder, so for now you should be setting the environment variable instead.

Something like:

export UNO_DISPLAY_SCALE_OVERRIDE=2

or inline with bash using:

UNO_DISPLAY_SCALE_OVERRIDE=2 dotnet myapp.dll

For the debugging, you can use the launchSettings.json environment variables as well.

@jeromelaban jeromelaban added platform/linux 🐧 Categorizes an issue or PR as relevant to Linux platforms project/core-tools 🛠️ Categorizes an issue or PR as relevant to core and tools area/framebuffer Categorizes an issue or PR as relevant to the Linux Framebuffer labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/framebuffer Categorizes an issue or PR as relevant to the Linux Framebuffer platform/linux 🐧 Categorizes an issue or PR as relevant to Linux platforms project/core-tools 🛠️ Categorizes an issue or PR as relevant to core and tools
Projects
None yet
Development

No branches or pull requests

1 participant