public class PhysicalFontInfo
Example:
// Configure Aspose.Words to source fonts from a custom folder, and then print every available font.
FontSourceBase[] folderFontSource = { new FolderFontSource(getFontsDir(), true) };
for (PhysicalFontInfo fontInfo : folderFontSource[0].getAvailableFonts())
{
System.out.println(MessageFormat.format("FontFamilyName : {0}", fontInfo.getFontFamilyName()));
System.out.println(MessageFormat.format("FullFontName : {0}", fontInfo.getFullFontName()));
System.out.println(MessageFormat.format("Version : {0}", fontInfo.getVersion()));
System.out.println(MessageFormat.format("FilePath : {0}\n", fontInfo.getFilePath()));
}
Property Getters/Setters Summary | ||
---|---|---|
java.lang.String | getFilePath() | |
Path to the font file if any.
|
||
java.lang.String | getFontFamilyName() | |
Family name of the font.
|
||
java.lang.String | getFullFontName() | |
Full name of the font.
|
||
java.lang.String | getVersion() | |
Version string of the font.
|
public java.lang.String getFilePath()
Example:
Shows how to list available fonts.// Configure Aspose.Words to source fonts from a custom folder, and then print every available font. FontSourceBase[] folderFontSource = { new FolderFontSource(getFontsDir(), true) }; for (PhysicalFontInfo fontInfo : folderFontSource[0].getAvailableFonts()) { System.out.println(MessageFormat.format("FontFamilyName : {0}", fontInfo.getFontFamilyName())); System.out.println(MessageFormat.format("FullFontName : {0}", fontInfo.getFullFontName())); System.out.println(MessageFormat.format("Version : {0}", fontInfo.getVersion())); System.out.println(MessageFormat.format("FilePath : {0}\n", fontInfo.getFilePath())); }
public java.lang.String getFontFamilyName()
Example:
Shows how to list available fonts.// Configure Aspose.Words to source fonts from a custom folder, and then print every available font. FontSourceBase[] folderFontSource = { new FolderFontSource(getFontsDir(), true) }; for (PhysicalFontInfo fontInfo : folderFontSource[0].getAvailableFonts()) { System.out.println(MessageFormat.format("FontFamilyName : {0}", fontInfo.getFontFamilyName())); System.out.println(MessageFormat.format("FullFontName : {0}", fontInfo.getFullFontName())); System.out.println(MessageFormat.format("Version : {0}", fontInfo.getVersion())); System.out.println(MessageFormat.format("FilePath : {0}\n", fontInfo.getFilePath())); }
public java.lang.String getFullFontName()
Example:
Shows how to list available fonts.// Configure Aspose.Words to source fonts from a custom folder, and then print every available font. FontSourceBase[] folderFontSource = { new FolderFontSource(getFontsDir(), true) }; for (PhysicalFontInfo fontInfo : folderFontSource[0].getAvailableFonts()) { System.out.println(MessageFormat.format("FontFamilyName : {0}", fontInfo.getFontFamilyName())); System.out.println(MessageFormat.format("FullFontName : {0}", fontInfo.getFullFontName())); System.out.println(MessageFormat.format("Version : {0}", fontInfo.getVersion())); System.out.println(MessageFormat.format("FilePath : {0}\n", fontInfo.getFilePath())); }
public java.lang.String getVersion()
Example:
Shows how to list available fonts.// Configure Aspose.Words to source fonts from a custom folder, and then print every available font. FontSourceBase[] folderFontSource = { new FolderFontSource(getFontsDir(), true) }; for (PhysicalFontInfo fontInfo : folderFontSource[0].getAvailableFonts()) { System.out.println(MessageFormat.format("FontFamilyName : {0}", fontInfo.getFontFamilyName())); System.out.println(MessageFormat.format("FullFontName : {0}", fontInfo.getFullFontName())); System.out.println(MessageFormat.format("Version : {0}", fontInfo.getVersion())); System.out.println(MessageFormat.format("FilePath : {0}\n", fontInfo.getFilePath())); }