Giter Site home page Giter Site logo

Comments (10)

xhcoding avatar xhcoding commented on August 9, 2024 2

I have the same issue on manjaro kde 4k screen, my system scale is 2. QT_SCREEN_SCALE_FACTORS=VGA-1=2; is set as environment variable, so EAF program has double scaling.

I remove the relevant environment variables from the process-environment to disable QT scaling, let EAF qt program follow the system scale.

(require 'seq)

(setq process-environment (seq-filter
 (lambda(var)
   (and (not (string-match-p "QT_SCALE_FACTOR" var))
        (not (string-match-p "QT_SCREEN_SCALE_FACTOR" var)))) process-environment))

(eaf-setq eaf-browser-default-zoom  "2") 

from emacs-application-framework.

manateelazycat avatar manateelazycat commented on August 9, 2024

I haven't HiDPI monitor, sorry i can't test it. ;(

from emacs-application-framework.

yangsheng6810 avatar yangsheng6810 commented on August 9, 2024

Shall we keep this issue open while I spend some time fixing the issue? It is also OK to close it and I will make a PR when I have a reasonably mature patch ready.

from emacs-application-framework.

manateelazycat avatar manateelazycat commented on August 9, 2024

PR are welcome!

from emacs-application-framework.

stardiviner avatar stardiviner commented on August 9, 2024

Is there a solution for this? I installed Arch Linux on MacBook Pro with a Retina screen. The position of EAF displayed is bigger than Emacs window.

I can help for testing.

from emacs-application-framework.

manateelazycat avatar manateelazycat commented on August 9, 2024

I haven't HiDPI screen.

I think code should get device scale factor, then adjust render x, y, width, height.

Sorry, I know how to fix this issue, but i haven't HiDPI device now.

from emacs-application-framework.

stardiviner avatar stardiviner commented on August 9, 2024

Maybe I can provide remote access for you. WDYT? Even not now, my home network is broken, I need to wait China disease gone. Ask engineer to setup my home network.

from emacs-application-framework.

manateelazycat avatar manateelazycat commented on August 9, 2024

Thank you, it need much time.

from emacs-application-framework.

stardiviner avatar stardiviner commented on August 9, 2024

Ok, I see. Thanks for considering that.

from emacs-application-framework.

stardiviner avatar stardiviner commented on August 9, 2024

This is very great, It works for me too. Thanks @xhcoding !!

@manateelazycat Can this workaround be in EAF source code?

from emacs-application-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.