user109134
user109134

Reputation: 454

C# PrintDocument PaperSize / FontSize

  1. in the constructor of PaperSize, what unit are the numbers in?

    var ps = new PaperSize( "Custom Size", XX , YY );
    

    I'm using PrintDocument to do some print out and need to create a page size (w x h) of 9.79cm by 14.75cm.

  2. I'm using e.Graphics.PageUnit = GraphicsUnit.Millimeter; I want to crate a font of 24 points,

    Font titleFont = new Font( STR_Arial, 24, FontStyle.Regular );
    

    is this correct?

Upvotes: 2

Views: 3784

Answers (1)

ThatSteveGuy
ThatSteveGuy

Reputation: 1095

  1. hundredths of an inch
  2. I think you need GraphicsUnit.Point in your font constructor if you want to ensure units in points.

Upvotes: 4

Related Questions