(completing the previous commit)

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@37097 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Ivan Vučica 2013-09-17 21:47:09 +00:00
parent 7bc9e1a05a
commit a212d292f6

View file

@ -534,6 +534,7 @@ static CGFloat theAlpha = 1.; // TODO: removeme
}
- (void) GSSetFont: (GSFontInfo *)fontref
{
const CGFloat * matrix;
NSDebugLLog(@"OpalGState", @"%p (%@): %s", self, [self class], __PRETTY_FUNCTION__);
[super GSSetFont: fontref];
@ -541,7 +542,7 @@ static CGFloat theAlpha = 1.; // TODO: removeme
CGContextSetFont(CGCTX, opalFont);
CGContextSetFontSize(CGCTX, 1);
float * matrix = [fontref matrix];
matrix = [fontref matrix];
CGAffineTransform cgAT = CGAffineTransformMake(matrix[0], matrix[1],
matrix[2], matrix[3],
matrix[4], matrix[5]);
@ -561,7 +562,8 @@ static CGFloat theAlpha = 1.; // TODO: removeme
}
CGPoint pt = CGContextGetPathCurrentPoint(CGCTX);
// FIXME: why * 0.66?
pt.y += [self->font defaultLineHeightForFont] * 0.66;
CGContextSetTextPosition(CGCTX, pt.x, pt.y);
CGContextShowGlyphsWithAdvances(CGCTX, cgglyphs, (const CGSize *)advances, length);
}