yousseb / meld

Meld for macOS
https://yousseb.github.io/meld/
GNU General Public License v2.0
2.3k stars 120 forks source link

Can't change font #38

Open coyotwill opened 7 years ago

coyotwill commented 7 years ago

Meld build 3.16.0 r1 (osx-9) + macOS Sierra 10.12.4

I just installed Meld by moving the .App in my /Applications folder.

Now when I run it and try to change the editor font, it seems to always fail and fallback to a non-monospaced font. The result is hard to read. (see attached capture) meld

If I start Meld from a terminal (cd cd /Applications/Meld.app/Contents/MacOS/; Meld), I can see the following message in the console, when the editor is opened: (meld:7990): Pango-WARNING **: couldn't load font "Courier New Bold Condensed Not-Rotated 14", modified variant/weight/stretch as fallback, expect ugly output. This not quite right since I chose Courier New Regular from the Preferences Window.

This fails for any font.

Using the default font is working fine.

erictabellion commented 7 years ago

I have exactly the same issue. For me this is a deal breaker, the font is just too small on a retina display. It's too bad, the description on the main web page mentioned support for "retina display", so I was hopeful. I'll have to chase for another diff & merge tool that is more friendly on the eyes unless we can get some quick resolution.

yousseb commented 6 years ago

3.19.0 should fix this issue.

coyotwill commented 6 years ago

Hi @yousseb, thanks for the heads up, but unfortunately 3.19 did not fox this for me (on High Sierra, 10.13.2). When "Use system fixed font" is checked, the UI uses a monospaced font so tiny that it's almost impossible to read. And when I uncheck the box, the UI ignores my choice and still displays the same non-monospaced font.

asimonov commented 6 years ago

yes, I think it is fixed in 3.19 on high sierra

kbd commented 6 years ago

yes, I think it is fixed in 3.19 on high sierra

Not fixed for me. Checking "Use the system fixed width font" does have an effect, but choosing any other font by selecting the "Editor font" does not work correctly.

charleseolson commented 6 years ago

I have the exact same problem. Meld is unusable as a result.

charleseolson commented 6 years ago

Interestingly, the small font problem only occurs on the built-in Retina display of my Macbook. On the external non-Retina display, it's fine. Changing the font still doesn't work, however.

benstse commented 6 years ago

I too see this issue on High Sierra 10.13.6 MacPro Retina. Changing the font does not stick. I wanted to changed to a fixed with font and it never seems to work. Choosing the "system font" option is too small on the laptop screen. Using "system font" is fine when my Mac is connected to a large display.

I'm running Meld 3.19.0.

munepi commented 6 years ago

@benstse

Changing the font does not stick.

Yes!

But, Meld macOS-ported by @yousseb use plist preference ~/Library/Preferences/org.gnome.meld.plist. So, you can set Meld's custom font with defaults CLI. Indeed, you can get your current settings of Meld preferences.

$ defaults read org.gnome.meld

Then, you can set to turn-off use system font:

$ defaults write org.gnome.meld "/org/gnome/meld/use-system-font" = 0

and set to chose custom font:

$ defaults write org.gnome.meld "/org/gnome/meld/custom-font" = "Ricty, 20"

If you would like to change other keys, please check /Applications/Meld.app//Contents/Resources/share/meld/org.gnome.meld.gschema.xml.

austinbutler commented 5 years ago

Seems the syntax has change somewhat since the post above.

What works now: defaults write org.gnome.meld "/org/gnome/meld/use-system-font" 0 defaults write org.gnome.meld "/org/gnome/meld/custom-font" "Source Code Pro, 12"

bbottema commented 2 years ago

This is still an issue with 3.21.0.osx3 on Big Sur

hbarahona commented 2 years ago

Problems still present in Monterey 12.0.1 using version 3.21.0.osx3

DarkTrick commented 2 years ago

Problems still present in Monterey 12.0.1 using version 3.21.0.osx3

here too

et304383 commented 1 year ago

Same issue on MacOS Ventura 13.1

jconnolly commented 1 year ago

I fixed it, got it to use JetBrains Mono 18.... then it crashed on me like half way into modifying a document. Time to shelve meld for me.