diff --git a/AppKit/CoreGraphics.subproj/CGFont.m b/AppKit/CoreGraphics.subproj/CGFont.m index 5eda87ec..77cdd2da 100755 --- a/AppKit/CoreGraphics.subproj/CGFont.m +++ b/AppKit/CoreGraphics.subproj/CGFont.m @@ -16,3 +16,9 @@ CGFontRef CGFontCreateWithFontName(NSString *name) { void CGFontRelease(CGFontRef self){ [self release]; } + +size_t CGFontGetNumberOfGlyphs(CGFontRef self) { + return [self numberOfGlyphs]; +} + + diff --git a/AppKit/CoreGraphics.subproj/KGContext.m b/AppKit/CoreGraphics.subproj/KGContext.m index bd5f745f..b6e11c95 100644 --- a/AppKit/CoreGraphics.subproj/KGContext.m +++ b/AppKit/CoreGraphics.subproj/KGContext.m @@ -9,7 +9,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI #import "KGContext.h" #import "KGBitmapContext.h" #import "KGGraphicsState.h" -#import "KGFontState.h" #import "KGColor.h" #import "KGColorSpace.h" #import "KGMutablePath.h" @@ -797,16 +796,7 @@ static inline KGGraphicsState *currentState(KGContext *self){ } -(void)showText:(const char *)text length:(unsigned)length { - unichar unicode[length]; - CGGlyph glyphs[length]; - int i; - -// FIX, encoding - for(i=0;i_textTransform.ty+=advancement.height; } +-(void)showText:(const char *)text length:(unsigned)length { + unichar unicode[length]; + CGGlyph glyphs[length]; + int i; + +// FIX, encoding + for(i=0;i_textTransform.ty+=advancement.height; } +-(void)showText:(const char *)text length:(unsigned)length { + unichar unicode[length]; + CGGlyph glyphs[length]; + int i; + +// FIX, encoding + for(i=0;i @interface KGFontState_gdi : KGFontState { - CGFontMetrics _metrics; - struct CGGlyphRangeTable *_glyphRangeTable; - struct CGGlyphMetricsSet *_glyphInfoSet; BOOL _useMacMetrics; } diff --git a/AppKit/X11.subproj/CairoContext.m b/AppKit/X11.subproj/CairoContext.m index 10ee654a..0eb6389d 100644 --- a/AppKit/X11.subproj/CairoContext.m +++ b/AppKit/X11.subproj/CairoContext.m @@ -395,6 +395,19 @@ cairo_font_face_destroy(face); } +-(void)showText:(const char *)text length:(unsigned)length { + unichar unicode[length]; + CGGlyph glyphs[length]; + int i; + +// FIX, encoding + for(i=0;i