Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

When I read text elements from a .dgn file. I only can get the "height", "length" attribute of the text (it doesn't have a "size" attribute) (example: total height = 0.9; total length = 8.6).

I need to add these text elements into a PageLayout of Arcgis. I used the IFontDisp to identify font attributes for text. It requires to identify the "size" attribute. How can I know that ?

ITextElement pTextElement = new TextElementClass();
IFontDisp pFont = new StdFontClass() as IFontDisp;
pColor = new RgbColorClass();
pColor.Red = 0;
pFont.Name = fontName;
pFont.Size =  **???**
pFont.Weight = weight;
share|improve this question
1  
What are the units on your pagelayout (inches or mm)? I think font sizes are in points. 72 points = 1 inch. –  Kirk Kuykendall Oct 30 '12 at 16:28
    
Confirmed: support.microsoft.com/kb/76388 –  blah238 Oct 30 '12 at 17:09
    
@Kirk Kuykendall: the unit of my pagelayout is: cm. What is the size value for this ? (expected size value should be similar size 11 of arial font) –  taibc Oct 31 '12 at 1:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.