Hexagon Geospatial
MENU

Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Contributor
Posts: 37
Registered: ‎11-11-2015
Accepted Solution

fontFamily update using DynamciStyles

Can we update fontFamily using DynamciStyles for Text type geometry? We have identifed a way to update, see below. Please suggest if you have any better option other than this.

 

$GP.dynamicStyles.register({    featureClassId: "FeatureClass1",

    default: function (feature) {  

     

var style = {"defaults":{"boundsColor": "#000000","boundsTranslucency": 0,"boundsWidth": 1, "cursor": "inherit","fillColor": "#aaaaaa","fillTranslucency": 0,"fontBold": false,"fontFamily": "Wingdings","fontFillColor": "#000000", "fontFillTranslucency": 0,"fontItalic": false,"fontRotation": 0,"fontSize": 7,"fontStrokeColor": "#000000","fontStrokeOpacity": 0,"fontStrokeWidth": 0,"fontUnderline": false,"fontWeight": 10,"imageBoundsWidth": 0,"lineColor": "#000000","lineTranslucency": 0,"lineWidth": 1,"maskFontFillColor": "#FFFFFF","maskFontFillOpacity": 0.3,"maskFontStrokeColor": "#FFFFFF","maskFontStrokeOpacity": 0.5,"maskFontStrokeWidth": "0.5ex","pointColor": "#000000","pointSize": 3,"pointTranslucency": 0,"pointerEvents": "visiblePainted","strokeDashstyle": "solid","strokeLinecap": "round"},"color": "#008000","name": "Red dot","size": 20,"underline": false};   

 

return {"style": style, defaultStyleName: "none",styleType: "Intergraph.WebSolutions.Core.WebClient.Platform.Style.TextStyle"}}});

Highlighted
Contributor
Posts: 37
Registered: ‎11-11-2015

Re: fontFamily update using DynamciStyles

This apporach is working for us.

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.