We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Custom font on Xamarin

How do I specify locations for custom TTF files on Xamarin?

The docs at (https://docs.aspose.com/display/wordsnet/Xamarin+and+.NET+Standard+2.0+API+Differences+and+Limitations) state:

  1. Because of lack of Windows fonts in target OS (Android, MacOS, Linux etc), fonts used in documents are substituted with available fonts, this might lead into inaccurate document layout, when render document to fixed page formats (like Images, PDF, XPS etc.)

Do I specify a path where the TTF exists on the mobile device? Can I (preferably) specify them as streams and/or embedded resources?

@Brian.Mahocker,

We are working on your query and will get back to you soon.

@Brian.Mahocker,

You can specify locations for custom TTF fonts files on Xamarin platform by using the same methods which are mentioned in the following Aspose.Words for .NET articles:

How to Specify True Type Fonts Location
MemoryFontSource Class

Worked like a charm. Thanks.