mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
Opal: Implemented -defaultLineHeightForFont, the key to getting
GNUstep layouting system to use information provided in -advancementForGlyph:. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@37058 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a5b102b243
commit
fe626e1e90
2 changed files with 17 additions and 1 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2013-09-09 Ivan Vucica <ivan@vucica.net>
|
||||
|
||||
* Source/opal/OpalFontInfo.m:
|
||||
Implemented -defaultLineHeightForFont, the key to getting
|
||||
GNUstep layouting system to use information provided in
|
||||
-advancementForGlyph:.
|
||||
|
||||
Without that, the textcontainer->linefrags does not get
|
||||
created.
|
||||
|
||||
2013-09-08 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/x11/XGGLContext.m,
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
- (NSSize) advancementForGlyph: (NSGlyph)glyph
|
||||
{
|
||||
NSDebugLLog(@"OpalFontInfo", @"OpalFontInfo: %s - %c", __PRETTY_FUNCTION__, glyph);
|
||||
return NSMakeSize(100,100);
|
||||
return NSMakeSize(10,10);
|
||||
}
|
||||
- (NSGlyph) glyphWithName: (NSString *) glyphName
|
||||
{
|
||||
|
@ -74,4 +74,10 @@
|
|||
{
|
||||
[path lineToPoint: NSMakePoint(length*10, 10)];
|
||||
}
|
||||
- (CGFloat) defaultLineHeightForFont
|
||||
{
|
||||
// required for textcontainer->linefrags calculation to work
|
||||
// without which information supplied in advancementForGlyph: is also not used.
|
||||
return 10;
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue