Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Cocoa - Font metrics

Dave,
please file a bug here: https://bugs.eclipse.org/bugs/enter_bug.cgi
Please include a test case if you have one.
Thanks,
Kevin Barnes



Inactive hide details for Dave Smith <dave.smith@xxxxxxxxxxx>Dave Smith <dave.smith@xxxxxxxxxxx>


          Dave Smith <dave.smith@xxxxxxxxxxx>
          Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

          03/30/2009 05:30 PM

          Please respond to
          "Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>

To

"Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>

cc


Subject

[platform-swt-dev] Cocoa - Font metrics

We are using 3.5M6 x64.

We have a SWT terminal emulator that uses a Courier New Font. We are
using GC.getAdvanceWidth('W') to figure out how much space each
character takes up and GC.getFontMetrics().getHeight() to figure out
how high each character is.

This works fine in GTK,Windows and Carbon. With the Cocoa port it
looks like for a 12 point font the width is 2 pixels too small and the
height is 4 pixels too small.
Not sure where to go from here.


Dave Smith
Candata Systems Ltd.
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev

GIF image

GIF image

GIF image


Back to the top