#988 cocoa support for font quality

Completed
closed
scintilla (93)
5
2013-05-28
2013-05-01
Mark Yen
No

The cocoa implementation currently doesn't support SCI_{GET|SET}FONTQUALITY; the attached patch adds it. I don't know how to add it to the unit tests (actually, I don't know how to build Scintilla tests that are relevant to cocoa), so I randomly added it to the Font menu in the demo app. Note that I'm not very sure I hacked the .nib correctly - but it does seem to show up and work correctly.

1 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2013-05-02

    Committed as [3b2f50].
    Wrapped in some version checking since CGContextSetAllowsFontSubpixelPositioning is not available in OS X 10.5.

     

    Related

    Commit: [3b2f50]

  • Neil Hodgson

    Neil Hodgson - 2013-05-02
    • labels: --> scintilla
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson

    Neil Hodgson - 2013-05-21

    There is also CGContextSetAllowsFontSmoothing. Adding this code makes the text look better to me:

    CGContextSetAllowsFontSmoothing((CGContextRef)gc,
    vs.extraFontFlag != SC_EFF_QUALITY_NON_ANTIALIASED);

     
  • Neil Hodgson

    Neil Hodgson - 2013-05-28
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks