Monogame: Pipeline tool can't find Freetype6.dll

Created on 6 Feb 2016  路  5Comments  路  Source: MonoGame/MonoGame

When trying to build a spritefont in the content pipeline, it fails because it can't find the freetype6.dll, despite this .dll being in the monogame tools folder. I have tried multiple versions, and all of them have this issue.

This is the message when building the font:

Building Font C:WINDOWSFontsarial.ttf
System.DllNotFoundException: Unable to load DLL 'freetype6.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at SharpFont.FT.FT_Init_FreeType(IntPtr& alibrary)
at SharpFont.Library..ctor()
at Microsoft.Xna.Framework.Content.Pipeline.Graphics.SharpFontImporter.Import(FontDescription options, String fontName)
at Microsoft.Xna.Framework.Content.Pipeline.Processors.FontDescriptionProcessor.ImportFont(FontDescription options, Single& lineSpacing, Int32& yOffsetMin, ContentProcessorContext context, String fontName)
at Microsoft.Xna.Framework.Content.Pipeline.Processors.FontDescriptionProcessor.Process(FontDescription input, ContentProcessorContext context)

Most helpful comment

Try the solution here.
http://community.monogame.net/t/monogame-noob-unable-to-load-freeimage/6255
Let us know if this works for you.

All 5 comments

Try the solution here.
http://community.monogame.net/t/monogame-noob-unable-to-load-freeimage/6255
Let us know if this works for you.

Hello thank you for getting back to me! It worked like a charm thanks for the help and sorry for not finding this solution beforehand. Thanks again!

Solution doesn't work anymore!
I am using Visual Studio Community 2017.

Microsoft has removed VC++ 2012 Redistributable.

image

Faced this issue now, have installed VC++ 2012 Redist from https://www.microsoft.com/en-us/download/details.aspx?id=30679, font building was fixed.

Faced this issue using the dev / 3.8 branch. Turned out I had to install VC++ redist 2010 x64
https://www.microsoft.com/en-us/download/details.aspx?id=14632

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tomspilman picture tomspilman  路  4Comments

rds1983 picture rds1983  路  5Comments

Legendree picture Legendree  路  3Comments

MontyHimself picture MontyHimself  路  5Comments

NET-D3v3l0p3r picture NET-D3v3l0p3r  路  3Comments