hzwols

Textsize feature differs from textsymbol

Discussion created by hzwols on Dec 12, 2012
Latest reply on Dec 12, 2012 by hzwols
Hello,

I want to check the textsize of annotation features against the size in symboldefinitions in an annotation featureclass.
There are several annotation features (created with the existing symbol) in this featureclass.
With following code I read a feature and the symboldefinition from the symbolcollection.

Dim pAnnoClass As IAnnoClass
Set pAnnoClass = pFeatureClass.Extension
Dim pSymbolCollection As ISymbolCollection2
Set pSymbolCollection = pAnnoClass.symbolCollection
Set pFeatureCursor = pFeatureClass.Update(pFilter, False)
Set pFeature = pFeatureCursor.NextFeature
Dim pSymbolIndent As ISymbolIdentifier2
indexSymbolID = pFeatureClass.Fields.FindField("SymbolId")
pSymbolCollection.GetSymbolIdentifier pFeature.Value(indexSymbolID), pSymbolIndent
Dim pTextSymbol As IFormattedTextSymbol
Set pTextSymbol = pSymbolIndent.Symbol

Debug.Print pTextSymbol.Font.Name, pFeature.Value(IndexFontSize), pTextSymbol.Font.size


Result of the debug.print is: Univers Com 55               14           14.25

As you can see the value of textsize in the feature differs from the size of the textsymbol.

Can someone explain what's happening here?

Greetings, Henk

Outcomes