+ Reply to Thread
Results 1 to 4 of 4

Thread: drawing text on MacOS X fails

  1. #1
    Junior Member
    Join Date
    Jun 2010
    Location
    Boeblinge, Germany
    Posts
    4

    drawing text on MacOS X fails

    Hello!

    I am currently investigating REBOL to see if I can use it for the development of (small) platform-independent programs.

    Graphics capabilities will be an important point.

    Some stuff is working already, but I can't achieve anti-aliased text under Mac OS X! Using the most recent View release of REBOL 2 for Mac OS X, I am trying s.th. like

    Code:
        view layout [ 
         box 200x160 effect [draw [ 
            pen black 
            text 10x20 "Test" 
         ]] 
        ]
    with lots of variations (with/without font specification, various pen/fill-pen/line-width settings etc.) The "effect" seems to work under Windows, but not under Mac OS X. I even tried the tip found at http://www.compkarori.com/vanilla/display/AGG (after adapting it to Mac OS X with its differnt font paths), but never got any display.

    Adding a "line" command displayed that line, though - thus, I am quite certain that my commands should be basically correct.

    Does anybody have any ideas?

    Thanks in advance for any help!
    Kind regards,

    Andreas Rozek

  2. #2
    Administrator
    Join Date
    Jan 2004
    Posts
    390

    I think text effects only work on Windows and Linux. I'll ask around to check.
    Dr Graham Chiu
    Wiki: http://www.compkarori.co.nz:8090
    ph: 1-818-570-2839

  3. #3
    Administrator
    Join Date
    Jan 2004
    Posts
    390

    See http://www.rebol.org/ml-display-thread.r?m=rmlMYDC

    Rebol lacks access to the glyph data on OSX so can not do the antiaiiased text. It does not look as though this will be ever fixed for Rebol2, and you may have to wait for Rebol3.
    Dr Graham Chiu
    Wiki: http://www.compkarori.co.nz:8090
    ph: 1-818-570-2839

  4. #4
    Junior Member
    Join Date
    Jun 2010
    Location
    Boeblinge, Germany
    Posts
    4

    Graham,

    thanks for your quick response!

    That sounds bad! Proper text rendering is a major feature - aliased text just looks terribly ugly (especially when compared to other applications running on the same desktop that use anti-aliased fonts...) This makes it really difficult for me to use REBOL 2 - and REBOL 3 seems to be far away from an official relase.
    Kind regards,

    Andreas Rozek

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts