< prev index next >

src/java.desktop/share/classes/sun/font/FontScaler.java

Print this page




 226      */
 227     abstract long getLayoutTableCache() throws FontScalerException;
 228 
 229     /* Used by the OpenType engine for mark positioning. */
 230     abstract Point2D.Float getGlyphPoint(long pScalerContext,
 231                                 int glyphCode, int ptNumber)
 232         throws FontScalerException;
 233 
 234     abstract long getUnitsPerEm();
 235 
 236     /* Returns pointer to native structure describing rasterization attributes.
 237        Format of this structure is scaler-specific.
 238 
 239        Callee is responsible for freeing scaler context (using free()).
 240 
 241        Note:
 242          Context is tightly associated with strike and it is actually
 243         freed when corresponding strike is being released.
 244      */
 245     abstract long createScalerContext(double[] matrix,

 246                                       int aa, int fm,
 247                                       float boldness, float italic,
 248                                       boolean disableHinting);
 249 
 250     /* Marks context as invalid because native scaler is invalid.
 251        Notes:
 252          - pointer itself is still valid and has to be released
 253          - if pointer to native scaler was cached it
 254            should not be neither disposed nor used.
 255            it is very likely it is already disposed by this moment. */
 256     abstract void invalidateScalerContext(long ppScalerContext);
 257 }


 226      */
 227     abstract long getLayoutTableCache() throws FontScalerException;
 228 
 229     /* Used by the OpenType engine for mark positioning. */
 230     abstract Point2D.Float getGlyphPoint(long pScalerContext,
 231                                 int glyphCode, int ptNumber)
 232         throws FontScalerException;
 233 
 234     abstract long getUnitsPerEm();
 235 
 236     /* Returns pointer to native structure describing rasterization attributes.
 237        Format of this structure is scaler-specific.
 238 
 239        Callee is responsible for freeing scaler context (using free()).
 240 
 241        Note:
 242          Context is tightly associated with strike and it is actually
 243         freed when corresponding strike is being released.
 244      */
 245     abstract long createScalerContext(double[] matrix,
 246                                       double scaleX, double scaleY,
 247                                       int aa, int fm,
 248                                       float boldness, float italic,
 249                                       boolean disableHinting);
 250 
 251     /* Marks context as invalid because native scaler is invalid.
 252        Notes:
 253          - pointer itself is still valid and has to be released
 254          - if pointer to native scaler was cached it
 255            should not be neither disposed nor used.
 256            it is very likely it is already disposed by this moment. */
 257     abstract void invalidateScalerContext(long ppScalerContext);
 258 }
< prev index next >