TFont里的字体大小

来源:互联网 发布:最火交友软件 编辑:程序博客网 时间:2024/04/29 18:34

TFont里的字体大小,

 

Font.Size = -Font.Height * 72 / Font.PixelsPerInch

 

1英寸=72磅  //"磅"是字体单位,又可以称为"点",是单位

1磅 = 0.35146mm ≈ 0.35mm  

 

//Specifies the height of the font in points 

//Height 是像素

TFont::Height  Use Height to specify the height of the font in pixels

 

//Specifies the height of the font in points

//用"点",也即是"磅"来说明字体的高度

TFont::Size    

  

//Indicates the conversion factor between logical inches and the pixels of the device (printer or screen) using the font

//英寸和像素的转换因子

TFont::PixelsPerInch       

 

Printer()->PageHeight;      //Indicates the Height(in pixels) of the currently printing page

                                          //获取当前打印页的高度,用像素表明

Printer()->PageWidth;       //Indicates the Width(in pixels) of the currently printing page 

                                          //获取当前打印页的宽度,用像素表明

 

A4纸的大小为 210mm X 297mm

 

没做试验