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
Highlighted
mp
Contributor
Posts: 33
Registered: ‎05-30-2016

Custom font on WFS labels in Geospatial Portal

We have been given an example of how to use a custom font for the text type WFS in Geospatial Portal. This is done by generating a set of woff files and style sheet and add this stylesheet to the specifik ASPX fil and overwrite the default font-family in MapConfig.js with:

Sys.Application.add_init(function() {

Intergraph.WebSolutions.Core.WebClient.Platform.ClientScript.Draw.definitions["default"].fontFamily = "GeoMedia Util";

});

 

 

However, this works for all WFS where the text type is used. We need to be able to use two different fonts, for two different text layers. How do we achieve this?

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