com.aspose.words

Class SystemFontSource

public class SystemFontSource 
extends FontSourceBase

Represents all TrueType fonts installed to the system.

Constructor Summary
SystemFontSource(intpriority)
Ctor.
 
Property Getters/Setters Summary
intgetPriority()
Returns the font source priority.
intgetType()
Returns the type of the font source. The value of the property is FontSourceType integer constant.
 
Method Summary
java.util.ArrayList<PhysicalFontInfo>getAvailableFonts()
Returns list of fonts available via this source.
static java.lang.String[]getSystemFontFolders()
Returns system font folders or empty array if folders are not accessible.
 

    • Constructor Detail

      • SystemFontSource

        public SystemFontSource()
        Ctor.
      • SystemFontSource

        public SystemFontSource(int priority)
        Ctor.
        Parameters:
        priority - Font source priority. See the Priority property description for more information.
    • Property Getters/Setters Detail

      • getPriority

        public int getPriority()
        
        Returns the font source priority.

        This value is used when there are fonts with the same family name and style in different font sources. In this case Aspose.Words selects the font from the source with the higher priority value.

        The default value is 0.

      • getType

        public int getType()
        
        Returns the type of the font source. The value of the property is FontSourceType integer constant.
    • Method Detail

      • getAvailableFonts

        public java.util.ArrayList<PhysicalFontInfo> getAvailableFonts()
        Returns list of fonts available via this source.
      • getSystemFontFolders

        public static java.lang.String[] getSystemFontFolders()
                                                 throws java.lang.Exception
        Returns system font folders or empty array if folders are not accessible. On some platforms Aspose.Words could search system fonts not only through folders but in other sources too. For example, on Windows platform Aspose.Words search fonts also in the registry.