Skip to content

Commit 619fc4a

Browse files
author
yevgen-nykytenko
committed
Update content 2025-12-25 05:04:47
1 parent 8f7879b commit 619fc4a

File tree

13 files changed

+878
-181
lines changed

13 files changed

+878
-181
lines changed

english/java/com.groupdocs.viewer.fonts/_index.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,18 @@ For more details on working with fonts in GroupDocs.Viewer, please refer to the
2929
| [FontFormat](../com.groupdocs.viewer.fonts/fontformat) | Represents all font formats, which may be present in the UsedFontInfo class. |
3030
| [FontSettings](../com.groupdocs.viewer.fonts/fontsettings) | Provides methods for working with sources to look for TrueType fonts. |
3131
| [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. |
3337

3438
## Interfaces
3539

3640
| Interface | Description |
3741
| --- | --- |
3842
| [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. |
3944

4045
## Enumerations
4146

english/java/com.groupdocs.viewer.fonts/fontsource/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: FontSource
33
second_title: GroupDocs.Viewer for Java API Reference
44
description: Marker interface for the font sources.
55
type: docs
6-
weight: 15
6+
weight: 19
77
url: /java/com.groupdocs.viewer.fonts/fontsource/
88
---```
99
public interface FontSource

english/java/com.groupdocs.viewer.fonts/fontstyles/_index.md

Lines changed: 172 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,50 +13,98 @@ public final class FontStyles
1313
```
1414

1515
Represents 4 possible styles of the font, used in the document: Regular, Bold, Italic, or Bold Italic.
16+
## Constructors
17+
18+
| Constructor | Description |
19+
| --- | --- |
20+
| [FontStyles(boolean isBold, boolean isItalic)](#FontStyles-boolean-boolean-) | Creates a FontStyles instance from bold/italic flags. |
1621
## Fields
1722

1823
| Field | Description |
1924
| --- | --- |
20-
| [Regular](#Regular) | Regular font style. |
21-
| [Bold](#Bold) | Bold font style. |
22-
| [Italic](#Italic) | Italic font style. |
23-
| [BoldItalic](#BoldItalic) | Bold Italic font style. |
25+
| [Regular](#Regular) | |
26+
| [Bold](#Bold) | |
27+
| [Italic](#Italic) | |
28+
| [BoldItalic](#BoldItalic) | |
29+
| [REGULAR](#REGULAR) | |
30+
| [BOLD](#BOLD) | |
31+
| [ITALIC](#ITALIC) | |
32+
| [BOLD_ITALIC](#BOLD-ITALIC) | |
2433
## Methods
2534

2635
| Method | Description |
2736
| --- | --- |
2837
| [toString(int style)](#toString-int-) | Converts a style value to a human-readable string. |
38+
| [getName()](#getName--) | Returns readable name of this font style. |
39+
| [isBold()](#isBold--) | Returns true if bold bit is set. |
40+
| [isItalic()](#isItalic--) | Returns true if italic bit is set. |
41+
| [toString()](#toString--) | |
42+
| [equals(Object obj)](#equals-java.lang.Object-) | |
43+
| [hashCode()](#hashCode--) | |
44+
| [combine(FontStyles first, FontStyles second)](#combine-com.groupdocs.viewer.fonts.FontStyles-com.groupdocs.viewer.fonts.FontStyles-) | Union (C\# operator +) |
45+
| [subtract(FontStyles minuend, FontStyles subtrahend)](#subtract-com.groupdocs.viewer.fonts.FontStyles-com.groupdocs.viewer.fonts.FontStyles-) | Difference (C\# operator -) |
46+
| [tryParse(String style, FontStyles[] parsed)](#tryParse-java.lang.String-com.groupdocs.viewer.fonts.FontStyles---) | Parses a font style name to FontStyles. |
47+
### FontStyles(boolean isBold, boolean isItalic) {#FontStyles-boolean-boolean-}
48+
```
49+
public FontStyles(boolean isBold, boolean isItalic)
50+
```
51+
52+
53+
Creates a FontStyles instance from bold/italic flags.
54+
55+
**Parameters:**
56+
| Parameter | Type | Description |
57+
| --- | --- | --- |
58+
| isBold | boolean | |
59+
| isItalic | boolean | |
60+
2961
### Regular {#Regular}
3062
```
3163
public static final int Regular
3264
```
3365

3466

35-
Regular font style.
36-
3767
### Bold {#Bold}
3868
```
3969
public static final int Bold
4070
```
4171

4272

43-
Bold font style.
44-
4573
### Italic {#Italic}
4674
```
4775
public static final int Italic
4876
```
4977

5078

51-
Italic font style.
52-
5379
### BoldItalic {#BoldItalic}
5480
```
5581
public static final int BoldItalic
5682
```
5783

5884

59-
Bold Italic font style.
85+
### REGULAR {#REGULAR}
86+
```
87+
public static final FontStyles REGULAR
88+
```
89+
90+
91+
### BOLD {#BOLD}
92+
```
93+
public static final FontStyles BOLD
94+
```
95+
96+
97+
### ITALIC {#ITALIC}
98+
```
99+
public static final FontStyles ITALIC
100+
```
101+
102+
103+
### BOLD_ITALIC {#BOLD-ITALIC}
104+
```
105+
public static final FontStyles BOLD_ITALIC
106+
```
107+
60108

61109
### toString(int style) {#toString-int-}
62110
```
@@ -73,3 +121,116 @@ Converts a style value to a human-readable string.
73121

74122
**Returns:**
75123
java.lang.String - a string representation of the font style
124+
### getName() {#getName--}
125+
```
126+
public String getName()
127+
```
128+
129+
130+
Returns readable name of this font style.
131+
132+
**Returns:**
133+
java.lang.String
134+
### isBold() {#isBold--}
135+
```
136+
public boolean isBold()
137+
```
138+
139+
140+
Returns true if bold bit is set.
141+
142+
**Returns:**
143+
boolean
144+
### isItalic() {#isItalic--}
145+
```
146+
public boolean isItalic()
147+
```
148+
149+
150+
Returns true if italic bit is set.
151+
152+
**Returns:**
153+
boolean
154+
### toString() {#toString--}
155+
```
156+
public String toString()
157+
```
158+
159+
160+
161+
162+
**Returns:**
163+
java.lang.String
164+
### equals(Object obj) {#equals-java.lang.Object-}
165+
```
166+
public boolean equals(Object obj)
167+
```
168+
169+
170+
171+
172+
**Parameters:**
173+
| Parameter | Type | Description |
174+
| --- | --- | --- |
175+
| obj | java.lang.Object | |
176+
177+
**Returns:**
178+
boolean
179+
### hashCode() {#hashCode--}
180+
```
181+
public int hashCode()
182+
```
183+
184+
185+
186+
187+
**Returns:**
188+
int
189+
### combine(FontStyles first, FontStyles second) {#combine-com.groupdocs.viewer.fonts.FontStyles-com.groupdocs.viewer.fonts.FontStyles-}
190+
```
191+
public static FontStyles combine(FontStyles first, FontStyles second)
192+
```
193+
194+
195+
Union (C\# operator +)
196+
197+
**Parameters:**
198+
| Parameter | Type | Description |
199+
| --- | --- | --- |
200+
| first | com.groupdocs.viewer.fonts.FontStyles | |
201+
| second | com.groupdocs.viewer.fonts.FontStyles | |
202+
203+
**Returns:**
204+
com.groupdocs.viewer.fonts.FontStyles
205+
### subtract(FontStyles minuend, FontStyles subtrahend) {#subtract-com.groupdocs.viewer.fonts.FontStyles-com.groupdocs.viewer.fonts.FontStyles-}
206+
```
207+
public static FontStyles subtract(FontStyles minuend, FontStyles subtrahend)
208+
```
209+
210+
211+
Difference (C\# operator -)
212+
213+
**Parameters:**
214+
| Parameter | Type | Description |
215+
| --- | --- | --- |
216+
| minuend | com.groupdocs.viewer.fonts.FontStyles | |
217+
| subtrahend | com.groupdocs.viewer.fonts.FontStyles | |
218+
219+
**Returns:**
220+
com.groupdocs.viewer.fonts.FontStyles
221+
### tryParse(String style, FontStyles[] parsed) {#tryParse-java.lang.String-com.groupdocs.viewer.fonts.FontStyles---}
222+
```
223+
public static boolean tryParse(String style, FontStyles[] parsed)
224+
```
225+
226+
227+
Parses a font style name to FontStyles.
228+
229+
**Parameters:**
230+
| Parameter | Type | Description |
231+
| --- | --- | --- |
232+
| style | java.lang.String | |
233+
| parsed | com.groupdocs.viewer.fonts.FontStyles[] | |
234+
235+
**Returns:**
236+
boolean - true on success, false otherwise.
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
title: IFontInfo
3+
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.
59+
60+
**Returns:**
61+
byte[]
62+
### serializeToCss(Writer output) {#serializeToCss-java.io.Writer-}
63+
```
64+
public abstract void serializeToCss(Writer output)
65+
```
66+
67+
68+
Serializes this font info as a @font-face at-rule and writes it to the specified writer.
69+
70+
**Parameters:**
71+
| Parameter | Type | Description |
72+
| --- | --- | --- |
73+
| output | java.io.Writer | destination writer |
74+

0 commit comments

Comments
 (0)