community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx Knowledge Base

Definitive answers from Designer experts.
New Data Science Blog

Check out the latest post: All Models Are Wrong

READ MORE

Fix MapServer Error AGG error loading font

Moderator
Moderator

If you are unlucky while rendering a map in Alteryx with a Carto base map, you may face the following error message:

 

 

MapServer Error.png

 

 

Error: AGG error loading font (C:\WINDOWS\fonts\C:\Program)

 

Why is this happening?

 

Let's look at the map files used by MapServer - an open source third party application used for interactive mapping applications. They are located in .\Alteryx\bin\RuntimeData\MapServer.

 

A quick exam of files CartoDark.map, CartoLight.map, default.map shows us that fonts Arial, Verdana and Verdana-bold are required. If MapServer can't find any one of these fonts an error will occur.

 

On modern versions of Windows, Arial and Verdana are available by default. But sometimes, to save some disk space, only shortcuts of the fonts will be available, causing the error.

 

Fonts status could be verified from %WINDIR%\fonts or Control Panel\All Control Panel Items\Fonts:

 

The little blue arrow at the bottom left of the icon means that the font is a shortcut.

 

arial_shortcut.png

verdana_shortcut.png

How to fix it

 

Fonts need to be available from %WINDIR%\fonts (ex: C:\Windows\fonts).

 

To resolve this issue:

 

First, select all fonts and click on Font Settings.

 

 

fonts.png

 

Then, untick Allow fonts to be installed using a shortcut (advanced), and click OK.

 

font_settings.png

 

This should resolve the error on your machine.

 

Thank you.

Contributors