DrawString / Font.Angle bug

Last post 03-17-2008 7:26 by Neil. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 10-26-2005 10:13

    DrawString / Font.Angle bug

    When calling GraphicsEx.DrawString with a font angle of 270, the rectangle is filled black (this happens for none of the other angles):

    Rectangle r = new Rectangle(50,50,100,100);
    GraphicsEx graphics = GraphicsEx.FromControl(this);
    FontEx f = new FontEx(Font.Name,Font.Size,Font.Style);
    f.Angle = 270;
    graphics.DrawString("270",f,Color.Black,r);

    Could this be to do with the fact that GDIPlus constants OPAQUE and DT_RIGHT are the same and the call to GDIPlus.DrawText has been replaced with GDIPlus.ExtTextOut in GraphicsEx.DrawText?

    The workaround seems to be to ensure the rectangle has 0 width and height.

    SDF version 1.4.50804
    PPC 2003 SE emulator
  • 03-17-2008 4:35 In reply to

    • malc
    • Top 150 Contributor
    • Joined on 09-05-2007
    • Glasgow, UK
    • Posts 4

    Re: DrawString / Font.Angle bug

    This bug is still in the latest release 2.2.0.0. Also in order to get text to draw at all you need to set the angle to 360, default of 0 results in nothing. Also the ClearType boolean is ignored if set to false when system ClearType is on.
  • 03-17-2008 6:36 In reply to

    • Neil
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-30-2007
    • North Wales
    • Posts 1,349

    Re: DrawString / Font.Angle bug

    If it's not in Bugzilla, it's unlikely we'll fix it. The forums do not make a good bug tracker due to the sheer volume of posts. Report it and we'll fix it. That's all we ask.

    Neil Cowburn
    OpenNETCF Consulting

      
  • 03-17-2008 6:57 In reply to

    • malc
    • Top 150 Contributor
    • Joined on 09-05-2007
    • Glasgow, UK
    • Posts 4

    Re: DrawString / Font.Angle bug

    I put the angle and black rect bugs in to Bugzilla, but when I tried to submit the cleartype one it looks like I've broken it. Sorry.
  • 03-17-2008 7:26 In reply to

    • Neil
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-30-2007
    • North Wales
    • Posts 1,349

    Re: DrawString / Font.Angle bug

    Bugzilla is back up. 

    Neil Cowburn
    OpenNETCF Consulting

      
Page 1 of 1 (5 items)