I am trying to create a "bitmap to save webmap" on a website - and I have to present the text There are some problems in the right size on the server side
The font size for the text on the client is:
.textDiv {font-family: Verdana; Font-size: 16px; }
If I try to submit it with G. Drawstring ("Mytext", New Font ("Verdana", MACs), Brush Black, X, Y); The text will be up to 20% larger on the server. For the new font (), the second argument (font size) should be specified in them-digits Is there really an M-point? If I specify font-size: 16 AM in the browser, the text grows if I specify font-size: 1 AM text in the browser can be 14px larger, but if I put in the form of argument 1 on the server, then the text becomes a thin line. So, how do I convert a browser to PX or AM to pure PX / M. Actually, the document says "em-size" and not "m-point" ("am-point" Size, in the new font number "). This is telling you to specify the size in the digits. 72 points per inch You need to remove the DPI of the user's screen and the canvas DPI and multiply 16px by the difference in that ratio. For example Operation can be saved using Font Constructor Overload, which takes GraphicUnit and specifies the pixels, in this way, the appropriate size will be:
(CSS_Font_Size_Pixels * Canvas_DPI) / (User_Screen_DPI * 72) = Equivalent_Point_Size
(CSS_Font_Size_Pixels / User_Screen_DPI) * Canvas_DPI
< / Pre>
Comments
Post a Comment