Skip to content

Commit 97866b6

Browse files
committed
Aspose.Slides for Android 24.8 API references
1 parent ac3e2f0 commit 97866b6

File tree

9 files changed

+1007
-10
lines changed

9 files changed

+1007
-10
lines changed

content/androidjava/english/com.aspose.slides/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ url: /com.aspose.slides/
182182
| [EmbedFontCharacters](../com.aspose.slides/embedfontcharacters) | Represents the rule to use for adding new embedding font into [IPresentation](../com.aspose.slides/ipresentation) |
183183
| [EmbeddedEotFontsHtmlController](../com.aspose.slides/embeddedeotfontshtmlcontroller) | The formatting controller class to use for fonts embedding in EOT format |
184184
| [EmbeddedWoffFontsHtmlController](../com.aspose.slides/embeddedwofffontshtmlcontroller) | The formatting controller class to use for fonts embedding in WOFF format |
185+
| [EmbeddingLevel](../com.aspose.slides/embeddinglevel) | Represents the licensing rights for embedding the font. |
185186
| [EmptyTransition](../com.aspose.slides/emptytransition) | Empty slide transition effect. |
186187
| [ErrorBarType](../com.aspose.slides/errorbartype) | Represents type of error bar |
187188
| [ErrorBarValueType](../com.aspose.slides/errorbarvaluetype) | Represents type of error bar value |
@@ -211,6 +212,7 @@ url: /com.aspose.slides/
211212
| [FontFallBackRulesCollection](../com.aspose.slides/fontfallbackrulescollection) | Represents a collection of FontFallBack rules, defined by user |
212213
| [FontScheme](../com.aspose.slides/fontscheme) | Stores theme-defined fonts. |
213214
| [FontSources](../com.aspose.slides/fontsources) | Provides file and memory sources for external fonts. |
215+
| [FontStyle](../com.aspose.slides/fontstyle) | Font style enumeration |
214216
| [FontSubstCondition](../com.aspose.slides/fontsubstcondition) | Represents a rule fot font substitution |
215217
| [FontSubstRule](../com.aspose.slides/fontsubstrule) | Represents font subtituition information |
216218
| [FontSubstRuleCollection](../com.aspose.slides/fontsubstrulecollection) | Represents collection of fonts substitution. |
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
title: EmbeddingLevel
3+
second_title: Aspose.Slides for Android via Java API Reference
4+
description: Represents the licensing rights for embedding the font.
5+
type: docs
6+
url: /com.aspose.slides/embeddinglevel/
7+
---
8+
**Inheritance:**
9+
java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum
10+
```
11+
public final class EmbeddingLevel extends System.Enum
12+
```
13+
14+
Represents the licensing rights for embedding the font.
15+
## Fields
16+
17+
| Field | Description |
18+
| --- | --- |
19+
| [Installable](#Installable) | Fonts with this setting indicate that they may be embedded and permanently installed on the remote system by an application. |
20+
| [Restricted](#Restricted) | Fonts that have only this bit set must not be modified, embedded or exchanged in any manner without first obtaining permission of the legal owner. |
21+
| [PreviewPrint](#PreviewPrint) | When this bit is set, the font may be embedded, and temporarily loaded on the remote system. |
22+
| [Editable](#Editable) | When this bit is set, the font may be embedded but must only be installed temporarily on other systems. |
23+
| [NoSubsetting](#NoSubsetting) | When this bit is set, the font may not be subsetted prior to embedding. |
24+
| [BitmapOnly](#BitmapOnly) | When this bit is set, only bitmaps contained in the font may be embedded. |
25+
### Installable {#Installable}
26+
```
27+
public static final int Installable
28+
```
29+
30+
31+
Fonts with this setting indicate that they may be embedded and permanently installed on the remote system by an application. The user of the remote system acquires the identical rights, obligations and licenses for that font as the original purchaser of the font, and is subject to the same end-user license agreement, copyright, design patent, and/or trademark as was the original purchaser.
32+
33+
### Restricted {#Restricted}
34+
```
35+
public static final int Restricted
36+
```
37+
38+
39+
Fonts that have only this bit set must not be modified, embedded or exchanged in any manner without first obtaining permission of the legal owner.
40+
41+
### PreviewPrint {#PreviewPrint}
42+
```
43+
public static final int PreviewPrint
44+
```
45+
46+
47+
When this bit is set, the font may be embedded, and temporarily loaded on the remote system. Documents containing Preview & Print fonts must be opened "read-only;" no edits can be applied to the document.
48+
49+
### Editable {#Editable}
50+
```
51+
public static final int Editable
52+
```
53+
54+
55+
When this bit is set, the font may be embedded but must only be installed temporarily on other systems. In contrast to Preview & Print fonts, documents containing Editable fonts may be opened for reading, editing is permitted, and changes may be saved.
56+
57+
### NoSubsetting {#NoSubsetting}
58+
```
59+
public static final int NoSubsetting
60+
```
61+
62+
63+
When this bit is set, the font may not be subsetted prior to embedding. Other embedding restrictions specified in bits 0-3 and 9 also apply.
64+
65+
### BitmapOnly {#BitmapOnly}
66+
```
67+
public static final int BitmapOnly
68+
```
69+
70+
71+
When this bit is set, only bitmaps contained in the font may be embedded. No outline data may be embedded. If there are no bitmaps available in the font, then the font is considered unembeddable and the embedding services will fail.
72+

content/androidjava/english/com.aspose.slides/fontsmanager/_index.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ Manages fonts across the presentation.
6666
| [replaceFont(IFontData sourceFont, IFontData destFont)](#replaceFont-com.aspose.slides.IFontData-com.aspose.slides.IFontData-) | Replace font in presentation |
6767
| [replaceFont(IFontSubstRule substRule)](#replaceFont-com.aspose.slides.IFontSubstRule-) | Replace font in presentation using information provided in [FontSubstRule](../../com.aspose.slides/fontsubstrule) |
6868
| [replaceFont(IFontSubstRuleCollection substRules)](#replaceFont-com.aspose.slides.IFontSubstRuleCollection-) | Replace font in presentation using information provided in collection of [FontSubstRule](../../com.aspose.slides/fontsubstrule) |
69+
| [getFontBytes(IFontData fontData, int fontStyle)](#getFontBytes-com.aspose.slides.IFontData-int-) | Retrieves the byte array representing the font data for a specified font style and font data. |
70+
| [getFontEmbeddingLevel(byte[] fontBytes, String fontName)](#getFontEmbeddingLevel-byte---java.lang.String-) | Determines the embedding level of a font from the given byte array and font name. |
6971
### getFontSubstRuleList() {#getFontSubstRuleList--}
7072
```
7173
public final IFontSubstRuleCollection getFontSubstRuleList()
@@ -283,3 +285,65 @@ Replace font in presentation using information provided in collection of [FontSu
283285
| --- | --- | --- |
284286
| substRules | [IFontSubstRuleCollection](../../com.aspose.slides/ifontsubstrulecollection) | Font substitution rules collection |
285287
288+
### getFontBytes(IFontData fontData, int fontStyle) {#getFontBytes-com.aspose.slides.IFontData-int-}
289+
```
290+
public final byte[] getFontBytes(IFontData fontData, int fontStyle)
291+
```
292+
293+
294+
Retrieves the byte array representing the font data for a specified font style and font data.
295+
296+
--------------------
297+
298+
> ```
299+
> Presentation pres = new Presentation ("Presentation.pptx");
300+
> try {
301+
> // Retrieve all fonts used in the presentation
302+
> IFontData[] fonts = pres.getFontsManager().getFonts();
303+
> // Get the byte array representing the regular style of the first font in the presentation
304+
> byte[] fontBytes = pres.getFontsManager().getFontBytes(fonts[0], FontStyle.Regular);
305+
> } finally {
306+
> if (pres != null) pres.dispose();
307+
> }
308+
> ```
309+
310+
**Parameters:**
311+
| Parameter | Type | Description |
312+
| --- | --- | --- |
313+
| fontData | [IFontData](../../com.aspose.slides/ifontdata) | The font data object containing the information about the font [FontData](../../com.aspose.slides/fontdata). |
314+
| fontStyle | int | The style of the font for which the data is to be retrieved [FontStyle](../../com.aspose.slides/fontstyle). |
315+
316+
**Returns:**
317+
byte[] - A byte array containing the font data for the specified font style. If the font data or style is not found, returns null.
318+
### getFontEmbeddingLevel(byte[] fontBytes, String fontName) {#getFontEmbeddingLevel-byte---java.lang.String-}
319+
```
320+
public final int getFontEmbeddingLevel(byte[] fontBytes, String fontName)
321+
```
322+
323+
324+
Determines the embedding level of a font from the given byte array and font name.
325+
326+
--------------------
327+
328+
> ```
329+
> Presentation pres = new Presentation(pptxFileName);
330+
> try {
331+
> // Retrieve all fonts used in the presentation
332+
> IFontData[] fontDatas = pres.getFontsManager().getFonts();
333+
> // Get the byte array representing the regular style of the first font in the presentation
334+
> byte[] bytes = pres.getFontsManager().getFontBytes(fontDatas[0], FontStyle.Regular);
335+
> // Determine the embedding level of the font
336+
> int embeddingLevel = pres.getFontsManager().getFontEmbeddingLevel(bytes, fontDatas[0].getFontName());
337+
> } finally {
338+
> if (pres != null) pres.dispose();
339+
> }
340+
> ```
341+
342+
**Parameters:**
343+
| Parameter | Type | Description |
344+
| --- | --- | --- |
345+
| fontBytes | byte[] | The byte array containing the font data. |
346+
| fontName | java.lang.String | The name of the font. |
347+
348+
**Returns:**
349+
int - The embedding level of the specified font.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
title: FontStyle
3+
second_title: Aspose.Slides for Android via Java API Reference
4+
description: Font style enumeration
5+
type: docs
6+
url: /com.aspose.slides/fontstyle/
7+
---
8+
**Inheritance:**
9+
java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum
10+
```
11+
public final class FontStyle extends System.Enum
12+
```
13+
14+
Font style enumeration
15+
## Fields
16+
17+
| Field | Description |
18+
| --- | --- |
19+
| [Regular](#Regular) | Regular font style |
20+
| [Bold](#Bold) | Bold font style |
21+
| [Italic](#Italic) | Italic font style |
22+
| [Underline](#Underline) | Underline font style |
23+
| [Strikeout](#Strikeout) | Strikeout font style |
24+
### Regular {#Regular}
25+
```
26+
public static final int Regular
27+
```
28+
29+
30+
Regular font style
31+
32+
### Bold {#Bold}
33+
```
34+
public static final int Bold
35+
```
36+
37+
38+
Bold font style
39+
40+
### Italic {#Italic}
41+
```
42+
public static final int Italic
43+
```
44+
45+
46+
Italic font style
47+
48+
### Underline {#Underline}
49+
```
50+
public static final int Underline
51+
```
52+
53+
54+
Underline font style
55+
56+
### Strikeout {#Strikeout}
57+
```
58+
public static final int Strikeout
59+
```
60+
61+
62+
Strikeout font style
63+

content/androidjava/english/com.aspose.slides/ifontsmanager/_index.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Manages fonts across the presentation.
2626
| [replaceFont(IFontData sourceFont, IFontData destFont)](#replaceFont-com.aspose.slides.IFontData-com.aspose.slides.IFontData-) | Replace font in presentation |
2727
| [replaceFont(IFontSubstRule substRule)](#replaceFont-com.aspose.slides.IFontSubstRule-) | Replace font in presentation using information provided in [IFontSubstRule](../../com.aspose.slides/ifontsubstrule) |
2828
| [replaceFont(IFontSubstRuleCollection substRules)](#replaceFont-com.aspose.slides.IFontSubstRuleCollection-) | Replace font in presentation using information provided in collection of [IFontSubstRule](../../com.aspose.slides/ifontsubstrule) |
29+
| [getFontBytes(IFontData fontData, int fontStyle)](#getFontBytes-com.aspose.slides.IFontData-int-) | Retrieves the byte array representing the font data for a specified font style and font data. |
30+
| [getFontEmbeddingLevel(byte[] fontBytes, String fontName)](#getFontEmbeddingLevel-byte---java.lang.String-) | Determines the embedding level of a font from the given byte array and font name. |
2931
### getFontSubstRuleList() {#getFontSubstRuleList--}
3032
```
3133
public abstract IFontSubstRuleCollection getFontSubstRuleList()
@@ -251,3 +253,65 @@ Replace font in presentation using information provided in collection of [IFontS
251253
| --- | --- | --- |
252254
| substRules | [IFontSubstRuleCollection](../../com.aspose.slides/ifontsubstrulecollection) | Font substitution info collection |
253255

256+
### getFontBytes(IFontData fontData, int fontStyle) {#getFontBytes-com.aspose.slides.IFontData-int-}
257+
```
258+
public abstract byte[] getFontBytes(IFontData fontData, int fontStyle)
259+
```
260+
261+
262+
Retrieves the byte array representing the font data for a specified font style and font data.
263+
264+
--------------------
265+
266+
> ```
267+
> Presentation pres = new Presentation ("Presentation.pptx");
268+
> try {
269+
> // Retrieve all fonts used in the presentation
270+
> IFontData[] fonts = pres.getFontsManager().getFonts();
271+
> // Get the byte array representing the regular style of the first font in the presentation
272+
> byte[] fontBytes = pres.getFontsManager().getFontBytes(fonts[0], FontStyle.Regular);
273+
> } finally {
274+
> if (pres != null) pres.dispose();
275+
> }
276+
> ```
277+
278+
**Parameters:**
279+
| Parameter | Type | Description |
280+
| --- | --- | --- |
281+
| fontData | [IFontData](../../com.aspose.slides/ifontdata) | The font data object containing the information about the font [FontData](../../com.aspose.slides/fontdata). |
282+
| fontStyle | int | The style of the font for which the data is to be retrieved [FontStyle](../../com.aspose.slides/fontstyle). |
283+
284+
**Returns:**
285+
byte[] - A byte array containing the font data for the specified font style. If the font data or style is not found, returns null.
286+
### getFontEmbeddingLevel(byte[] fontBytes, String fontName) {#getFontEmbeddingLevel-byte---java.lang.String-}
287+
```
288+
public abstract int getFontEmbeddingLevel(byte[] fontBytes, String fontName)
289+
```
290+
291+
292+
Determines the embedding level of a font from the given byte array and font name.
293+
294+
--------------------
295+
296+
> ```
297+
> Presentation pres = new Presentation(pptxFileName);
298+
> try {
299+
> // Retrieve all fonts used in the presentation
300+
> IFontData[] fontDatas = pres.getFontsManager().getFonts();
301+
> // Get the byte array representing the regular style of the first font in the presentation
302+
> byte[] bytes = pres.getFontsManager().getFontBytes(fontDatas[0], FontStyle.Regular);
303+
> // Determine the embedding level of the font
304+
> int embeddingLevel = pres.getFontsManager().getFontEmbeddingLevel(bytes, fontDatas[0].getFontName());
305+
> } finally {
306+
> if (pres != null) pres.dispose();
307+
> }
308+
> ```
309+
310+
**Parameters:**
311+
| Parameter | Type | Description |
312+
| --- | --- | --- |
313+
| fontBytes | byte[] | The byte array containing the font data. |
314+
| fontName | java.lang.String | The name of the font. |
315+
316+
**Returns:**
317+
int - The embedding level of the specified font.

0 commit comments

Comments
 (0)