Author Topic: SlickEdit fonts distorted after latest MacOS update  (Read 10265 times)

magpie

  • Senior Community Member
  • Posts: 100
  • Hero Points: 5
SlickEdit fonts distorted after latest MacOS update
« on: January 07, 2011, 03:21:40 AM »
I have just updated my machine to the latest Snow Leopard with the update released yesterday and SlickEdit now looks much worse than before. The anti-aliasing of fonts is blotchy - as if the screen bitmap is being scaled slightly. Some pixels seem to be missing and others are doubled. If you aren't able to reproduce it I could provide a screen shot.

magpie

  • Senior Community Member
  • Posts: 100
  • Hero Points: 5
Re: SlickEdit fonts distorted after latest MacOS update
« Reply #1 on: February 03, 2011, 03:40:33 AM »

Scott H

  • Senior Community Member
  • Posts: 240
  • Hero Points: 9
Re: SlickEdit fonts distorted after latest MacOS update
« Reply #2 on: February 04, 2011, 04:04:23 PM »
Can you try the following?

1. Close
2. Bring up the Font Book application
3. Select all fonts.
4. Validate all fonts from the menu.
5. Restart SlickEdit.

Let me know if that helps the font problem for you.

jkwuc89

  • Senior Community Member
  • Posts: 199
  • Hero Points: 6
Re: SlickEdit fonts distorted after latest MacOS update
« Reply #3 on: February 04, 2011, 07:05:52 PM »
Here is a screen shot that shows pretty clearly the font quality problem inside SlickEdit 15.0.1.3 when compared to a truly native OS X text editor.  The other editor in this screen shot is TextWrangler.  Both editors are configured to use Liberation Mono as their default text editing font.

dmw

  • Senior Community Member
  • Posts: 145
  • Hero Points: 15
Re: SlickEdit fonts distorted after latest MacOS update
« Reply #4 on: February 15, 2011, 06:07:20 AM »
Any word on this?  It's really awful.  Even with my font size increased to an unreasonable size, the glyphs still render poorly.

I've validated and removed all bad fonts, and wiped the contents of my .fontconfig directory.  No change.

jkwuc89

  • Senior Community Member
  • Posts: 199
  • Hero Points: 6
Re: SlickEdit fonts distorted after latest MacOS update
« Reply #5 on: February 15, 2011, 04:55:16 PM »
Here is another screen shot that clearly shows the font problem for the OS X version.  On the left is SlickEdit running on OS X.  On the right is the same version of SlickEdit running on a remote Linux system that is being displayed by X11 on my MacBook Pro via X11 session remoting.

ScottW, VP of Dev

  • Senior Community Member
  • Posts: 1471
  • Hero Points: 64
Re: SlickEdit fonts distorted after latest MacOS update
« Reply #6 on: February 16, 2011, 07:32:01 PM »
Thanks! The screen shots are very helpful. We're looking into this to see what we can do.

Scott H

  • Senior Community Member
  • Posts: 240
  • Hero Points: 9
Re: SlickEdit fonts distorted after latest MacOS update
« Reply #7 on: February 17, 2011, 06:14:57 PM »
It looks like the 10.6.6 update did away with the /etc/fonts folder.  We read the fonts.conf file inside that folder for information about the fonts available on the system.  The easiest solution is to create the /etc/fonts folder and put the two attached files into it.  Close SlickEdit and restart it, and the fonts should render much nicer.  Please let me know if this helps.

jkwuc89

  • Senior Community Member
  • Posts: 199
  • Hero Points: 6
Re: SlickEdit fonts distorted after latest MacOS update
« Reply #8 on: February 17, 2011, 06:36:38 PM »
Dropping the attached copies of fonts.conf and fonts.dtd into my /etc/fonts directory causes several of my installed fonts not to show up inside SlickEdit.  This includes my mono font of choice, Liberation Mono, which resides inside my /Library/Fonts directory.  After choosing a font that is available, I did not see a demonstrable improvement in the font quality inside SlickEdit.

dmw

  • Senior Community Member
  • Posts: 145
  • Hero Points: 15
Re: SlickEdit fonts distorted after latest MacOS update
« Reply #9 on: February 17, 2011, 09:23:18 PM »
I'm not positive, but I think it has more to do with libfreetype that ships with the OS.  I replaced mine with one I had built last year that I had laying around, and fonts seem to have improved - but I can't be sure because I've been staring at the pixels too much trying to discern what exactly is different.

I've attached it here.  Just copy it to /usr/X11/lib and restart SlickEdit.

I'm not suggesting using this file as a solution, just to steer toward a solution.

Scott H

  • Senior Community Member
  • Posts: 240
  • Hero Points: 9
Re: SlickEdit fonts distorted after latest MacOS update
« Reply #10 on: February 17, 2011, 09:28:39 PM »
That is a big improvement!  I'll look into what you wrote more closely, thanks for this...

jkwuc89

  • Senior Community Member
  • Posts: 199
  • Hero Points: 6
Re: SlickEdit fonts distorted after latest MacOS update
« Reply #11 on: February 18, 2011, 02:46:15 AM »
The version of libfreetype.6.dylib attached in a previous reply makes a big difference.  I am also using the following fonts.conf file inside /etc/fonts:

<fontconfig>
        <dir>/Library/Fonts</dir>
        <dir>/Network/Library/Fonts</dir>
        <dir>/System/Library/Fonts</dir>
        <dir>/usr/X11R6/lib/X11/fonts</dir>
        <dir>/usr/share/fonts</dir>
        <dir>/var/root/Library/Fonts</dir>
        <dir>~/Library/Fonts</dir>

        <cachedir>/usr/X11/var/cache/fontconfig</cachedir>
        <cachedir>~/.fontconfig</cachedir>

        <match target="font" >
                <edit mode="assign" name="rgba" ><const>rgb</const></edit>
                <edit mode="assign" name="hinting" ><bool>true</bool></edit>
                <edit mode="assign" name="antialias"><bool>true</bool></edit>
                <edit mode="assign" name="autohint" ><bool>false</bool></edit>
                <edit mode="assign" name="hintstyle"><const>hintfull</const></edit>
        </match>

</fontconfig>

dmw

  • Senior Community Member
  • Posts: 145
  • Hero Points: 15
Re: SlickEdit fonts distorted after latest MacOS update
« Reply #12 on: February 18, 2011, 03:24:19 AM »
Wow, cool!  I didn't think you could change that stuff without rebuilding the library.  I found this page which details even more options.  Maybe with enough tweaking we can get the fonts to render closer to Mac OS X's native rendering.

jkwuc89

  • Senior Community Member
  • Posts: 199
  • Hero Points: 6
Re: SlickEdit fonts distorted after latest MacOS update
« Reply #13 on: February 18, 2011, 12:16:34 PM »
Here is a screen shot showing how SlickEdit looks on my MacBook Pro when using the attached libfreetype lib from an earlier post and the fonts.conf file I posted earlier.

ScottW, VP of Dev

  • Senior Community Member
  • Posts: 1471
  • Hero Points: 64
Re: SlickEdit fonts distorted after latest MacOS update
« Reply #14 on: February 18, 2011, 03:59:23 PM »
@jkwuc89: regarding your last post, are you saying that this has resolved the issue for that font? Please always post your evaluation. When you let us draw our own conclusion we may come to a different one than you'd expect.  ;)

Of course, we'd love to find a solution where you don't have to do that, but I'm not sure if we'll be able to do that short of rewriting SlickEdit as a native app. Certainly, this helps us to pin down what the problem is and see what we can do within the current framework.

Doing research on this issue, it seems like a lot of people are having trouble with other applications due to the switch to Snow Leopard, and not just X11 apps either. I find that very surprising since the Mac has a reputation for not having to fiddle with such things.