jdk/src/macosx/native/sun/awt/CTextPipe.m
changeset 13678 5c8001201f98
parent 12047 320a714614e9
child 13768 4bf20f0aaac4
equal deleted inserted replaced
13508:7c6aa31ff1b2 13678:5c8001201f98
    34 
    34 
    35 #import "CoreTextSupport.h"
    35 #import "CoreTextSupport.h"
    36 #import "QuartzSurfaceData.h"
    36 #import "QuartzSurfaceData.h"
    37 #include "AWTStrike.h"
    37 #include "AWTStrike.h"
    38 
    38 
       
    39 /* Use THIS_FILE when it is available. */
       
    40 #ifndef THIS_FILE
       
    41     #define THIS_FILE __FILE__
       
    42 #endif
    39 
    43 
    40 static const CGAffineTransform sInverseTX = { 1, 0, 0, -1, 0, 0 };
    44 static const CGAffineTransform sInverseTX = { 1, 0, 0, -1, 0, 0 };
    41 
    45 
    42 
    46 
    43 #pragma mark --- CoreText Support ---
    47 #pragma mark --- CoreText Support ---
   486         CGSize *advances = (CGSize *)malloc(sizeof(CGSize) * length);
   490         CGSize *advances = (CGSize *)malloc(sizeof(CGSize) * length);
   487 
   491 
   488         if (glyphs == NULL || advances == NULL)
   492         if (glyphs == NULL || advances == NULL)
   489         {
   493         {
   490             (*env)->DeleteLocalRef(env, glyphsArray);
   494             (*env)->DeleteLocalRef(env, glyphsArray);
   491             [NSException raise:NSMallocException format:@"%s-%s:%d", __FILE__, __FUNCTION__, __LINE__];
   495             [NSException raise:NSMallocException format:@"%s-%s:%d", THIS_FILE, __FUNCTION__, __LINE__];
   492             return;
   496             return;
   493         }
   497         }
   494 
   498 
   495         doDrawGlyphsPipe_fillGlyphAndAdvanceBuffers(env, qsdo, strike, gVector, glyphs, uniChars, advances, length, glyphsArray);
   499         doDrawGlyphsPipe_fillGlyphAndAdvanceBuffers(env, qsdo, strike, gVector, glyphs, uniChars, advances, length, glyphsArray);
   496 
   500