jdk/src/macosx/native/sun/font/AWTStrike.m
changeset 13678 5c8001201f98
parent 12047 320a714614e9
child 15973 ea0278a3c432
equal deleted inserted replaced
13508:7c6aa31ff1b2 13678:5c8001201f98
    31 #import "CGGlyphOutlines.h"
    31 #import "CGGlyphOutlines.h"
    32 #import "AWTStrike.h"
    32 #import "AWTStrike.h"
    33 #import "CoreTextSupport.h"
    33 #import "CoreTextSupport.h"
    34 //#import "jni_util.h"
    34 //#import "jni_util.h"
    35 
    35 
       
    36 /* Use THIS_FILE when it is available. */
       
    37 #ifndef THIS_FILE
       
    38     #define THIS_FILE __FILE__
       
    39 #endif
       
    40 
    36 @implementation AWTStrike
    41 @implementation AWTStrike
    37 
    42 
    38 static CGAffineTransform sInverseTX = { 1, 0, 0, -1, 0, 0 };
    43 static CGAffineTransform sInverseTX = { 1, 0, 0, -1, 0, 0 };
    39 
    44 
    40 - (id) initWithFont:(AWTFont *)awtFont
    45 - (id) initWithFont:(AWTFont *)awtFont
   100     }
   105     }
   101 
   106 
   102 #define AWT_FONT_CLEANUP_FINISH                                         \
   107 #define AWT_FONT_CLEANUP_FINISH                                         \
   103     if (_fontThrowJavaException == YES) {                               \
   108     if (_fontThrowJavaException == YES) {                               \
   104         char s[512];                                                    \
   109         char s[512];                                                    \
   105         sprintf(s, "%s-%s:%d", __FILE__, __FUNCTION__, __LINE__);       \
   110         sprintf(s, "%s-%s:%d", THIS_FILE, __FUNCTION__, __LINE__);       \
   106         [JNFException raise:env as:kRuntimeException reason:s];         \
   111         [JNFException raise:env as:kRuntimeException reason:s];         \
   107     }
   112     }
   108 
   113 
   109 
   114 
   110 /*
   115 /*