mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 03:10:47 +00:00
* Headers/AppKit/NSTextContainer.h,
* Source/NSTextContainer.m, * Source/GSHorizontalTypesetter.m: Correct the definition of NSLineMovementDirection. * Headers/AppKit/NSFont.h * Source/NSFont.m: Add a few missing 10.4 methods. * Header/AppKit/NSLayoutManager.h, * Source/NSLayoutManager.m: Add one 10.5 method. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35999 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ff7f9ada4a
commit
28a4847640
8 changed files with 88 additions and 15 deletions
|
@ -1118,6 +1118,12 @@ static BOOL flip_hack;
|
|||
- (CGFloat) xHeight { return [fontInfo xHeight]; }
|
||||
- (CGFloat) defaultLineHeightForFont { return [fontInfo defaultLineHeightForFont]; }
|
||||
|
||||
- (CGFloat) leading
|
||||
{
|
||||
// FIXME
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
/* Computing font metrics attributes*/
|
||||
- (CGFloat) widthOfString: (NSString*)string
|
||||
{
|
||||
|
@ -1241,6 +1247,39 @@ static BOOL flip_hack;
|
|||
return i;
|
||||
}
|
||||
|
||||
- (void) getAdvancements: (NSSizeArray)advancements
|
||||
forGlyphs: (const NSGlyph*)glyphs
|
||||
count: (NSUInteger)count
|
||||
{
|
||||
// FIXME
|
||||
int i;
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
advancements[i] = [self advancementForGlyph: glyphs[i]];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) getAdvancements: (NSSizeArray)advancements
|
||||
forPackedGlyphs: (const void*)glyphs
|
||||
count: (NSUInteger)count
|
||||
{
|
||||
// FIXME
|
||||
}
|
||||
|
||||
- (void) getBoundingRects: (NSRectArray)bounds
|
||||
forGlyphs: (const NSGlyph*)glyphs
|
||||
count: (NSUInteger)count
|
||||
{
|
||||
// FIXME
|
||||
int i;
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
bounds[i] = [self boundingRectForGlyph: glyphs[i]];
|
||||
}
|
||||
}
|
||||
|
||||
- (NSStringEncoding) mostCompatibleStringEncoding
|
||||
{
|
||||
return [fontInfo mostCompatibleStringEncoding];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue