summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-04-12 02:05:36 +0300
committerTor Lillqvist <tml@iki.fi>2013-04-12 02:24:42 +0300
commitd520bd0903ae272cf32db8b3e4f560891df59331 (patch)
tree0361bf20c34eb8e7926a6f0ca17cafcca3dcf0ff /vcl
parent3f9acb7f9c3b68da11f8263b9103d2700321913b (diff)
A bit more logging in DrawText()
Change-Id: I04c715e88ee79aa639c10f2a39d303eecdbd3962
Diffstat (limited to 'vcl')
-rw-r--r--vcl/coretext/salcoretextlayout.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/vcl/coretext/salcoretextlayout.cxx b/vcl/coretext/salcoretextlayout.cxx
index ddd692889e0b..c31100197401 100644
--- a/vcl/coretext/salcoretextlayout.cxx
+++ b/vcl/coretext/salcoretextlayout.cxx
@@ -213,9 +213,6 @@ void CoreTextLayout::DrawText( SalGraphics& rGraphics ) const
if( mnCharCount <= 0 || !gr.CheckContext() )
return;
- Point pos = GetDrawPosition(Point(0,0));
- SAL_INFO( "vcl.coretext.layout", " at pos (" << pos.X() << "," << pos.Y() <<") ctfont=" << mpStyle->GetFont() );
-
CGFontRef cg_font = CTFontCopyGraphicsFont(mpStyle->GetFont(), NULL);
if( !cg_font ) {
SAL_INFO( "vcl.coretext.layout", "Error cg_font is NULL" );
@@ -236,6 +233,15 @@ void CoreTextLayout::DrawText( SalGraphics& rGraphics ) const
CFRelease(cg_font);
CGContextSetTextMatrix(gr.mrContext, CGAffineTransformMakeScale(1.0, -1.0));
CGContextSetShouldAntialias( gr.mrContext, !gr.mbNonAntialiasedText );
+
+ Point pos = GetDrawPosition(Point(0,0));
+ CGPoint posDev = CGContextConvertPointToDeviceSpace(gr.mrContext, CGPointMake(pos.X(), pos.Y()));
+ SAL_INFO( "vcl.coretext.layout",
+ " context=" << gr.mrContext <<
+ " pos=(" << pos.X() << "," << pos.Y() <<")" <<
+ " posDev=" << posDev <<
+ " font=" << mpStyle->GetFont() );
+
CGContextTranslateCTM(gr.mrContext, pos.X(), pos.Y());
CGContextShowGlyphsWithAdvances(gr.mrContext, mpGlyphs, mpGlyphAdvances, mnGlyphCount);