You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: english/java/com.groupdocs.viewer.fonts/_index.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,13 +29,18 @@ For more details on working with fonts in GroupDocs.Viewer, please refer to the
29
29
|[FontFormat](../com.groupdocs.viewer.fonts/fontformat)| Represents all font formats, which may be present in the UsedFontInfo class. |
30
30
|[FontSettings](../com.groupdocs.viewer.fonts/fontsettings)| Provides methods for working with sources to look for TrueType fonts. |
31
31
|[FontStyles](../com.groupdocs.viewer.fonts/fontstyles)| Represents 4 possible styles of the font, used in the document: Regular, Bold, Italic, or Bold Italic. |
32
-
|[UsedFontInfo](../com.groupdocs.viewer.fonts/usedfontinfo)| Represents metainfo and binary data of one font, used in the content of the document, loaded into the Viewer instance. |
32
+
|[PdfFontInfo](../com.groupdocs.viewer.fonts/pdffontinfo)| Encapsulates meta-information and binary data of one font from a PDF document, loaded into the Viewer instance. |
33
+
|[PresentationFontInfo](../com.groupdocs.viewer.fonts/presentationfontinfo)| Encapsulates metadata and binary data of a font used in a Presentation document, loaded into the Viewer instance. |
34
+
|[SpreadsheetFontInfo](../com.groupdocs.viewer.fonts/spreadsheetfontinfo)| Encapsulates metainfo and binary data of one font from the Spreadsheet document, loaded into the Viewer instance. |
35
+
|[WordProcessingFontInfo](../com.groupdocs.viewer.fonts/wordprocessingfontinfo)| Encapsulates metainfo and binary data of one font from the WordProcessing document, loaded into the Viewer instance. |
36
+
|[WordProcessingSubstitutedFontInfo](../com.groupdocs.viewer.fonts/wordprocessingsubstitutedfontinfo)| Encapsulates metadata and binary data of one substituted font used in a WordProcessing document via GroupDocs.Viewer. |
33
37
34
38
## Interfaces
35
39
36
40
| Interface | Description |
37
41
| --- | --- |
38
42
|[FontSource](../com.groupdocs.viewer.fonts/fontsource)| Marker interface for the font sources. |
43
+
|[IFontInfo](../com.groupdocs.viewer.fonts/ifontinfo)| Common interface for all fonts that can be extracted from document formats: PDF, WordProcessing, Spreadsheet, and Presentation. |
|[tryParse(String style, FontStyles[] parsed)](#tryParse-java.lang.String-com.groupdocs.viewer.fonts.FontStyles---)| Parses a font style name to FontStyles. |
second_title: GroupDocs.Viewer for Java API Reference
4
+
description: Common interface for all fonts that can be extracted from document formats PDF WordProcessing Spreadsheet and Presentation.
5
+
type: docs
6
+
weight: 20
7
+
url: /java/com.groupdocs.viewer.fonts/ifontinfo/
8
+
---```
9
+
public interface IFontInfo
10
+
```
11
+
12
+
Common interface for all fonts that can be extracted from document formats: PDF, WordProcessing, Spreadsheet, and Presentation.
13
+
## Methods
14
+
15
+
| Method | Description |
16
+
| --- | --- |
17
+
| [getFamilyName()](#getFamilyName--) | Family name of the font as a string. |
18
+
| [getStyle()](#getStyle--) | Style of the font \\u2014 Regular, Bold, Italic, or BoldItalic. |
19
+
| [getFormat()](#getFormat--) | Format of the font \\u2014 TrueType, TrueType Collection, OpenType, Embedded OpenType, or Unknown. |
20
+
| [getContent()](#getContent--) | Binary content of the font, or null if not available. |
21
+
| [serializeToCss(Writer output)](#serializeToCss-java.io.Writer-) | Serializes this font info as a @font-face at-rule and writes it to the specified writer. |
22
+
### getFamilyName() {#getFamilyName--}
23
+
```
24
+
public abstract String getFamilyName()
25
+
```
26
+
27
+
28
+
Family name of the font as a string.
29
+
30
+
**Returns:**
31
+
java.lang.String
32
+
### getStyle() {#getStyle--}
33
+
```
34
+
public abstract FontStyles getStyle()
35
+
```
36
+
37
+
38
+
Style of the font \\u2014 Regular, Bold, Italic, or BoldItalic. Some document formats may have only Regular.
39
+
40
+
**Returns:**
41
+
com.groupdocs.viewer.fonts.FontStyles
42
+
### getFormat() {#getFormat--}
43
+
```
44
+
public abstract int getFormat()
45
+
```
46
+
47
+
48
+
Format of the font \\u2014 TrueType, TrueType Collection, OpenType, Embedded OpenType, or Unknown.
49
+
50
+
**Returns:**
51
+
int
52
+
### getContent() {#getContent--}
53
+
```
54
+
public abstract byte[] getContent()
55
+
```
56
+
57
+
58
+
Binary content of the font, or null if not available.
0 commit comments