Byron Ellis wrote:
Yes. I think you want

#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4

Thanks, that looks simple, and rgl still compiles in Tiger. I'll commit the change as soon as I have an Internet connection again.

I'm still seeing problems with the display of glyphs: it appears that FTGL is not reading what FreeType sends properly, or FreeType is not reading the .ttf file properly. For now I'm going to set useFreeType=FALSE on MacOSX. It might help if FTGL could specify fonts by their characteristics, so I could use cairo or pango the way other devices do -- but FTGL isn't currently being maintained. Maybe it would be worth the effort to figure out what's going on in it and adding this myself.

Duncan Murdoch

for 10.4 and earlier. On Tue, Jul 8, 2008 at 3:04 AM, Duncan Murdoch <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    On 07/07/2008 11:46 PM, Jan de Leeuw wrote:

        in src/ext/FTVectorizer.cpp lines 8-9 change

        #ifdef __APPLE_CC__
            typedef GLvoid (*GLUTesselatorFunction)(...);

        to

        #ifdef __APPLE_CC__
            typedef GLvoid (*GLUTesselatorFunction)();

        then rgl compiles on OS X (using g++-4.0, even with FTGL)


    I believe the first line is needed in 10.4.  Is there a
    conditional to select just that version?

    Duncan Murdoch



        -- Jan

        On Jul 7, 2008, at 18:29 , Duncan Murdoch wrote:

            On 07/07/2008 11:15 AM, Christoph Hofer wrote:

                Dear Mac-R-users
                I installed the rgl package via the R-GUI installation
                menu as a   binary (version 0.79).
                I use the R- 2.7.1 and i run it on a intel Mac
                (Leopard 10.5.4).
                The command rgl.open() gives me the following error:
                error in rgl.open() : Cannot create font, error code: 1
                Any suggestion to solve my problem?

            Another suggestion:

            Don't use rgl.open, use open3d.  But before you do that, try

            r3dDefaults$useFreeType <- FALSE

            I don't know how to get FTGL/Freetype to run properly on
            MacOSX, but  this avoids trying.

            Duncan Murdoch

            _______________________________________________
            R-SIG-Mac mailing list
            [email protected]
            <mailto:[email protected]>
            https://stat.ethz.ch/mailman/listinfo/r-sig-mac


        ===
        Jan de Leeuw; Distinguished Professor and Chair, UCLA
        Department of  Statistics;
        Director: UCLA Center for Environmental Statistics (CES);
        Editor: Journal of Multivariate Analysis, Journal of
        Statistical  Software;
        US mail: 8125 Math Sciences Bldg, Box 951554, Los Angeles, CA
        90095-1554
        phone (310)-825-9550;  fax (310)-206-5658;  email:
        [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
        .mac: jdeleeuw ++++++  aim: deleeuwjan ++++++ skype: j_deleeuw
        homepages: http://gifi.stat.ucla.edu ++++++
        http://www.cuddyvalley.org
-------------------------------------------------------------------------------------------------
                  No matter where you go, there you are. --- Buckaroo
        Banzai
                           http://gifi.stat.ucla.edu/sounds/nomatter.au
-------------------------------------------------------------------------------------------------





    _______________________________________________
    R-SIG-Mac mailing list
    [email protected] <mailto:[email protected]>
    https://stat.ethz.ch/mailman/listinfo/r-sig-mac




--
Byron Ellis ([EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>)
"Oook" -- The Librarian

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to