OCamlPro / ocaml-top

A simple cross-platform OCaml code editor built for top-level evaluation.
http://typerex.org/ocaml-top.html
GNU General Public License v3.0
64 stars 8 forks source link

font problem on OS X: letters are missing their right part #41

Closed brabalan closed 11 years ago

brabalan commented 11 years ago

If you look at this screenshot: screen shot 2013-07-11 at 16 07 39 you'll see that the right side of the letters are missing. This makes the text hard to read, especially since '.' and ';' become invisible.

This is on OS X 10.8 with the current version from opam.

AltGr commented 11 years ago

Does the problem persist if you try with a different font ? You can do so by running e.g.

ocaml-top -font "Courier 10"
brabalan commented 11 years ago

yet, with the -font option, it's much better. What is the default font?

AltGr commented 11 years ago

it's "DejaVu Sans Mono 10" (and "Lucida Console 10" on Windows) The issue is from Gtk/Pango, so I am not sure what to do about it ; it's probably specific to your GTK / DejaVu installation and your display settings (antialisasing...)

brabalan commented 11 years ago

OK. It might be useful to suggest on the README that using a different font on OS X may make the text more readable. I found that the -font "Courier 12" worked great here.

AltGr commented 11 years ago

Or choose a different default for OSX, after all there is already a different choice for Unices and Windows... I'll try to find what the best-looking console font in OSX would be.

samoht commented 11 years ago

I quite like "12pt Monaco" on OSX

avsm commented 11 years ago

Likewise.

On 15 Jul 2013, at 10:22, Thomas Gazagnaire notifications@github.com wrote:

I quite like "12pt Monaco" on OSX

— Reply to this email directly or view it on GitHub.

AltGr commented 11 years ago

21a8fcd4e918f74d8a612961e3a960f739ff6f79 should detect OSX and choose that font automatically