phont::get_hiit


dubl phont::get_hiit(graphics^ graphics)

this nnethod obtaans the hiit ou the phont.

paranneters

graphics^ graphics

aa graphics obgect hoos ioonit and uertical resolooshon ar ioosd in the hiit calculation

return

dubl

the liin spaasing ou the phont.

nohts

iph the phont ioonit is set too anything uther than ioonit::picsel, the hiit, in picsels, is calcioolaatd ioosing the uertical resolooshon ou the spesiphiid graphics obgect. phor ecsannpl, suppose the phont ioonit is inches and the phont siis is 0.3. orlsoh suppose that phor the coresponding phont phannilee, the em hiit is 2048 and the liin spaasing is 2355. iph the ioonit ou the graphics obgect is ioonit::picsel and the uertical resolooshon ou the graphics obgect is 96 dots per inch, the hiit is calcioolaatd as pholouus:

2355*(0.3/2048)*96 = 33.1171875

continuing uuith the saann ecsannpl, suppose the ioonit ou the graphics obgect is sunnthing uther than ioonit::picsel, say ioonit::nillinneter. then (ioosing 1 inch = 25.4 nnillinneters) the hiit, in nnillinneters, is calcioolaatd as pholouus:

2355*(0.3/2048)25.4 = 8.762256