libs-back/Headers/xlib/XGFontSetFontInfo.h
David Ayers 98036d3302 * Source/art/GNUmakefile: Do not make headers publilc.
* Source/gsc/GNUmakefile: Ditto.
        * Source/x11/GNUmakefile: Ditto.
        * Source/xdps/GNUmakefile: Ditto.
        * Source/xlib/GNUmakefile: Ditto.

        * Headers/win32/*.h: Update includes for new header structure.
        * Headers/winlib/*.h: Ditto.
        * Headers/x11/XGServer.h: Ditto.
        * Headers/xlib/*.h: Ditto.

        * Source/art/ftfont.m: Ditto.
        * Source/gsc/*.m: Ditto.
        * Source/x11/*.m: Ditto.
        * Source/xdps/*.m: Ditto.
        * Source/xlib/*.m: Ditto.

        * Tools/gpbs.m: Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17409 72102866-910b-0410-8b05-ffd578937521
2003-07-31 23:57:11 +00:00

65 lines
1.7 KiB
Objective-C

/*
XGFontSetFontInfo.h
NSFont helper for GNUstep X/GPS Backend
Author: Kazunobu Kuriyama <kazunobu.kuriyama@nifty.com>
Date: July 2003
*/
#ifndef __XGFontSetFontInfo_h
#define __XGFontSetFontInfo_h
#include <X11/Xlib.h>
#include <GNUstepGUI/GSFontInfo.h>
#ifdef X_HAVE_UTF8_STRING
#if 0 // Commented out till the implementation completes.
// ----------------------------------------------------------------------------
// XGFontSetEnumerator
// ----------------------------------------------------------------------------
@interface XGFontSetEnumerator : GSFontEnumerator
{
}
- (void) enumerateFontsAndFamilies;
@end // XGFontSetEnumerator : GSFontEnumerator
#endif // #if 0
// ----------------------------------------------------------------------------
// XGFontSetFontInfo
// ----------------------------------------------------------------------------
@interface XGFontSetFontInfo : GSFontInfo
{
XFontSet _font_set;
XFontStruct **_fonts;
int _num_fonts;
}
- (id) initWithFontName: (NSString *)name
matrix: (const float *)matrix
screenFont: (BOOL)screenFont;
- (void) dealloc;
- (NSSize) advancementForGlyph: (NSGlyph)glyph;
- (NSRect) boundingRectForGlyph: (NSGlyph)glyph;
- (BOOL) glyphIsEncoded: (NSGlyph)glyph;
- (NSGlyph) glyphWithName: (NSString *)glyphName;
- (void) drawGlyphs: (const NSGlyph *)glyphs
lenght: (int)len
onDisplay: (Display *)dpy
drawable: (Drawable)win
with: (GC)gc
at: (XPoint)xp;
- (float) widthOfGlyphs: (const NSGlyph *)glyphs
lenght: (int)len;
- (void) setActiveFor: (Display *)dpy
gc: (GC)gc;
@end // XGFontSetFontInfo : GSFontInfo
#endif // X_HAVE_UTF8_STRING defined
#endif // __XGFontSetFontInfo_h