public class FontFileManager extends Object implements IFontUriResolver
Summary description for FontFileManager.
| Modifier and Type | Field and Description |
|---|---|
String |
assignedFontFolderIfAny |
com.aspose.ms.System.IO.MemoryStream |
fontFileMapMemoryStreamIfAny |
String |
fontMapFilesDir |
boolean |
mustUseFontMapXmlFile |
| Constructor and Description |
|---|
FontFileManager(boolean mustUseFontMapping,
String path,
com.aspose.ms.System.IO.MemoryStream fontMapStreamIfAny,
String assignedFontFolder) |
| Modifier and Type | Method and Description |
|---|---|
com.aspose.ms.System.IO.MemoryStream |
createMapInStream() |
boolean |
isPrepared()
it must returns true if font resolver ready to work(resolve font name to
font path) right now.
|
static boolean |
isWindowsOS() |
void |
loadOrCreateFontMap() |
void |
prepare()
it refreshes font set to curren set of available fonts f.e.
|
void |
refresh()
it refreshes font set to curren set of available fonts f.e.
|
String |
resolveFontNameToUri(String fontName)
It must return font name that must be used when in original document
encountered requested font name.
|
public boolean mustUseFontMapXmlFile
public String fontMapFilesDir
public String assignedFontFolderIfAny
public com.aspose.ms.System.IO.MemoryStream fontFileMapMemoryStreamIfAny
public com.aspose.ms.System.IO.MemoryStream createMapInStream()
public void loadOrCreateFontMap()
public static boolean isWindowsOS()
public String resolveFontNameToUri(String fontName)
IFontUriResolverresolveFontNameToUri in interface IFontUriResolverpublic void prepare()
IFontUriResolverprepare in interface IFontUriResolverpublic void refresh()
IFontUriResolverrefresh in interface IFontUriResolverpublic boolean isPrepared()
IFontUriResolverisPrepared in interface IFontUriResolverCopyright © 2016 Aspose. All Rights Reserved.