I have used mont font. It works okay on my local machine but it’s different in Dev servers and UAT Server. This is my code for loading it.
string fontFolder = Path.Combine(_rootEnviro.WebRootPath, “mont”);
string fontFile = Path.Combine(_rootEnviro.WebRootPath, “mont”, “Mont-ExtraLight.ttf”);
FontConfigs.SetFontFolder(fontFolder, true);
FolderFontSource fontSourceFolder = new FolderFontSource(fontFolder, false);
FileFontSource fontSourceFile = new FileFontSource(fontFile);
MemoryFontSource sourceMemory = new MemoryFontSource(File.ReadAllBytes(fontFile));
FontConfigs.SetFontSources(new FontSourceBase[] { fontSourceFolder, fontSourceFile, sourceMemory });
Then I define font like this
style.Font.Name = “Mont-ExtraLight”;
I tried Dejavu and it behaved the same