Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions english/net/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ is_root: true
| [Aspose.Font.Cff](./aspose.font.cff/) | The **Aspose.Font.Cff** namespace provides classes describing objects related to CFF Font format. |
| [Aspose.Font.CffDataProviders](./aspose.font.cffdataproviders/) | The **Aspose.Font.CffDataProviders** namespace provides classes used to retrieve and update data from various CFF structures. |
| [Aspose.Font.CffExceptions](./aspose.font.cffexceptions/) | The **Aspose.Font.CffExceptions** namespace provides classes describing exceptions related to Compact Font Format. |
| [Aspose.Font.Common_FontMerger](./aspose.font.common_fontmerger/) | The **Aspose.Font.Common_FontMerger** namespace provides functionality for combining fonts. |
| [Aspose.Font.Exceptions](./aspose.font.exceptions/) | The **Aspose.Font.Exceptions** namespace provides classes describing exceptions used in Aspose.Font. |
| [Aspose.Font.Factories](./aspose.font.factories/) | The **Aspose.Font.Factories** namespace provides a family of classes used to create objects of various types. |
| [Aspose.Font.Glyphs](./aspose.font.glyphs/) | The **Aspose.Font.Glyphs** namespace provides classes describing glyph objects. |
Expand Down
17 changes: 17 additions & 0 deletions english/net/aspose.font.common_fontmerger/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Aspose.Font.Common_FontMerger
second_title: Aspose.Font for .NET API Reference
description: The Aspose.Font.Common_FontMerger namespace provides functionality for combining fonts
type: docs
weight: 50
url: /net/aspose.font.common_fontmerger/
---
The **Aspose.Font.Common_FontMerger** namespace provides functionality for combining fonts.

## Classes

| Class | Description |
| --- | --- |
| [FontCharactersMerger](./fontcharactersmerger/) | Declares functionality to merge fonts of different types. Fonts pair is needed for merge operation. One font from this pair is considered as primary. It means that many characteristics, related to final merged font, such as metrics, encoding structure and others, will be taken from this primary font. Another font from this pair (secondary) provides only glyphs for final merged font. |


Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
title: Class FontCharactersMerger
second_title: Aspose.Font for .NET API Reference
description: Aspose.Font.Common_FontMerger.FontCharactersMerger class. Declares functionality to merge fonts of different types. Fonts pair is needed for merge operation. One font from this pair is considered as primary. It means that many characteristics related to final merged font such as metrics encoding structure and others will be taken from this primary font. Another font from this pair secondary provides only glyphs for final merged font
type: docs
weight: 150
url: /net/aspose.font.common_fontmerger/fontcharactersmerger/
---
## FontCharactersMerger class

Declares functionality to merge fonts of different types. Fonts pair is needed for merge operation. One font from this pair is considered as primary. It means that many characteristics, related to final merged font, such as metrics, encoding structure and others, will be taken from this primary font. Another font from this pair (secondary) provides only glyphs for final merged font.

```csharp
public abstract class FontCharactersMerger
```

## Properties

| Name | Description |
| --- | --- |
| abstract [PrimaryFont](../../aspose.font.common_fontmerger/fontcharactersmerger/primaryfont/) { get; } | Gets primary font. |
| abstract [SecondaryFont](../../aspose.font.common_fontmerger/fontcharactersmerger/secondaryfont/) { get; } | Gets secondary font. |

## Methods

| Name | Description |
| --- | --- |
| abstract [MergeFonts](../../aspose.font.common_fontmerger/fontcharactersmerger/mergefonts/#mergefonts)(GlyphId[], GlyphId[], string) | Merges fonts based on glyphs lists passed. Searches for a character code for every glyph passed and adds found character code with correspondent glyph into resultant new font. |
| abstract [MergeFonts](../../aspose.font.common_fontmerger/fontcharactersmerger/mergefonts/#mergefonts_1)(IDictionary<uint, GlyphId>, IDictionary<uint, GlyphId>, string) | This method version designed for cases when you want to set character codes for glyphs in resultant font explicitly. It's not mandatory that code for glyph you provided is included in original font. The sense of code passed is that it will be associated with correspondent glyph identifier in resultant font. So, rule to process every pair passed by dictionary parameter[code, glyph ideitifier] is that only glyph identifer will be taken from original font and then it will be linked with correspondent code in resultant font. It can be helpful when some codes from first font conflict with same codes from second font. |
| abstract [MergeFonts](../../aspose.font.common_fontmerger/fontcharactersmerger/mergefonts/#mergefonts_2)(uint[], uint[], string) | Merges fonts based on character codes lists passed. To create desired resultant font just pass symbol codes from original fonts you want to include into resultant font. Glyphs related to codes passed will be found automatically. For example, if you want to include into resultant font glyphs related to letters A and B from first font and glyphs, related to letters C and D from second font, just call this method like this: |

### See Also

* namespace [Aspose.Font.Common_FontMerger](../../aspose.font.common_fontmerger/)
* assembly [Aspose.Font](../../)


Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
---
title: FontCharactersMerger.MergeFonts
second_title: Aspose.Font for .NET API Reference
description: FontCharactersMerger method. Merges fonts based on glyphs lists passed. Searches for a character code for every glyph passed and adds found character code with correspondent glyph into resultant new font
type: docs
weight: 30
url: /net/aspose.font.common_fontmerger/fontcharactersmerger/mergefonts/
---
## MergeFonts(GlyphId[], GlyphId[], string) {#mergefonts}

Merges fonts based on glyphs lists passed. Searches for a character code for every glyph passed and adds found character code with correspondent glyph into resultant new font.

```csharp
public abstract Font MergeFonts(GlyphId[] primaryFontGlyphs, GlyphId[] secondaryFontGlyphs,
string newFontName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| primaryFontGlyphs | GlyphId[] | List of glyphs to take from primary font |
| secondaryFontGlyphs | GlyphId[] | List of glyphs to take from secondary font |
| newFontName | String | Desired name for resultant font |

### Return Value

Merged font

### See Also

* class [Font](../../../aspose.font/font/)
* class [GlyphId](../../../aspose.font.glyphs/glyphid/)
* class [FontCharactersMerger](../)
* namespace [Aspose.Font.Common_FontMerger](../../../aspose.font.common_fontmerger/)
* assembly [Aspose.Font](../../../)

---

## MergeFonts(uint[], uint[], string) {#mergefonts_2}

Merges fonts based on character codes lists passed. To create desired resultant font just pass symbol codes from original fonts you want to include into resultant font. Glyphs related to codes passed will be found automatically. For example, if you want to include into resultant font glyphs related to letters A and B from first font and glyphs, related to letters C and D from second font, just call this method like this:

```csharp
MergeFonts(new uint[] { 'A', 'B' }, new uint[] { 'C', 'D' }, "NewFont")
```

```csharp
public abstract Font MergeFonts(uint[] primaryFontCharCodes, uint[] secondaryFontCharCodes,
string newFontName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| primaryFontCharCodes | UInt32[] | Codes to take from primary font |
| secondaryFontCharCodes | UInt32[] | Codes to take from secondary font |
| newFontName | String | Desired name for resultant font |

### Return Value

Merged font

### See Also

* class [Font](../../../aspose.font/font/)
* class [FontCharactersMerger](../)
* namespace [Aspose.Font.Common_FontMerger](../../../aspose.font.common_fontmerger/)
* assembly [Aspose.Font](../../../)

---

## MergeFonts(IDictionary<uint, GlyphId>, IDictionary<uint, GlyphId>, string) {#mergefonts_1}

This method version designed for cases when you want to set character codes for glyphs in resultant font explicitly. It's not mandatory that code for glyph you provided is included in original font. The sense of code passed is that it will be associated with correspondent glyph identifier in resultant font. So, rule to process every pair passed by dictionary parameter[code, glyph ideitifier] is that only glyph identifer will be taken from original font and then it will be linked with correspondent code in resultant font. It can be helpful when some codes from first font conflict with same codes from second font.

```csharp
public abstract Font MergeFonts(IDictionary<uint, GlyphId> primaryFontDict,
IDictionary<uint, GlyphId> secondaryFontDict, string newFontName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| primaryFontDict | IDictionary`2 | Dictionary with pairs [symbol code, glyph identifier] from primary font |
| secondaryFontDict | IDictionary`2 | Dictionary with pairs [symbol code, glyph identifier] from secondary font |
| newFontName | String | Desired name for resultant font |

### Return Value

Merged font

### See Also

* class [Font](../../../aspose.font/font/)
* class [GlyphId](../../../aspose.font.glyphs/glyphid/)
* class [FontCharactersMerger](../)
* namespace [Aspose.Font.Common_FontMerger](../../../aspose.font.common_fontmerger/)
* assembly [Aspose.Font](../../../)


Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: FontCharactersMerger.PrimaryFont
second_title: Aspose.Font for .NET API Reference
description: FontCharactersMerger property. Gets primary font
type: docs
weight: 10
url: /net/aspose.font.common_fontmerger/fontcharactersmerger/primaryfont/
---
## FontCharactersMerger.PrimaryFont property

Gets primary font.

```csharp
public abstract Font PrimaryFont { get; }
```

### See Also

* class [Font](../../../aspose.font/font/)
* class [FontCharactersMerger](../)
* namespace [Aspose.Font.Common_FontMerger](../../../aspose.font.common_fontmerger/)
* assembly [Aspose.Font](../../../)


Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: FontCharactersMerger.SecondaryFont
second_title: Aspose.Font for .NET API Reference
description: FontCharactersMerger property. Gets secondary font
type: docs
weight: 20
url: /net/aspose.font.common_fontmerger/fontcharactersmerger/secondaryfont/
---
## FontCharactersMerger.SecondaryFont property

Gets secondary font.

```csharp
public abstract Font SecondaryFont { get; }
```

### See Also

* class [Font](../../../aspose.font/font/)
* class [FontCharactersMerger](../)
* namespace [Aspose.Font.Common_FontMerger](../../../aspose.font.common_fontmerger/)
* assembly [Aspose.Font](../../../)


3 changes: 2 additions & 1 deletion english/net/aspose.font.exceptions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Aspose.Font.Exceptions
second_title: Aspose.Font for .NET API Reference
description: The Aspose.Font.Exceptions namespace provides classes describing exceptions used in Aspose.Font
type: docs
weight: 50
weight: 60
url: /net/aspose.font.exceptions/
---
The **Aspose.Font.Exceptions** namespace provides classes describing exceptions used in Aspose.Font.
Expand All @@ -17,6 +17,7 @@ The **Aspose.Font.Exceptions** namespace provides classes describing exceptions
| [FontConversionException](./fontconversionexception/) | Represents Font conversion exception. The exception can be thrown in case of errors during font conversion process. |
| [FontCreationException](./fontcreationexception/) | Represents Font creation exception. The exception can be thrown in case errors during font creation process. |
| [FontException](./fontexception/) | Represents common Font processing related exception. |
| [FontMergeException](./fontmergeexception/) | Represents Font merge exception. The exception may be thrown in case of errors while merging fonts. |
| [FontNotSupportedOperationException](./fontnotsupportedoperationexception/) | Represents not supported operation exception. The exception can be thrown in case some operation is not supported for particular Font type. |
| [IncorrectFontDataException](./incorrectfontdataexception/) | Represents exceptions for cases when some values of Font object are invalid. |
| [LicenseRestrictionException](./licenserestrictionexception/) | Represents exception which can be thrown on attempt to execute functionality which is restricted in evaluation mode. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Class EncodingException
second_title: Aspose.Font for .NET API Reference
description: Aspose.Font.Exceptions.EncodingException class. Represents encoding exception. The exception can be thrown in case problem with encoding/decoding text
type: docs
weight: 150
weight: 160
url: /net/aspose.font.exceptions/encodingexception/
---
## EncodingException class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Class FontAgrumentException
second_title: Aspose.Font for .NET API Reference
description: Aspose.Font.Exceptions.FontAgrumentException class. Represents Font argument exception. The exception can be thrown in case improper agrument usages
type: docs
weight: 160
weight: 170
url: /net/aspose.font.exceptions/fontagrumentexception/
---
## FontAgrumentException class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Class FontConversionException
second_title: Aspose.Font for .NET API Reference
description: Aspose.Font.Exceptions.FontConversionException class. Represents Font conversion exception. The exception can be thrown in case of errors during font conversion process
type: docs
weight: 170
weight: 180
url: /net/aspose.font.exceptions/fontconversionexception/
---
## FontConversionException class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Class FontCreationException
second_title: Aspose.Font for .NET API Reference
description: Aspose.Font.Exceptions.FontCreationException class. Represents Font creation exception. The exception can be thrown in case errors during font creation process
type: docs
weight: 180
weight: 190
url: /net/aspose.font.exceptions/fontcreationexception/
---
## FontCreationException class
Expand Down
2 changes: 1 addition & 1 deletion english/net/aspose.font.exceptions/fontexception/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Class FontException
second_title: Aspose.Font for .NET API Reference
description: Aspose.Font.Exceptions.FontException class. Represents common Font processing related exception
type: docs
weight: 190
weight: 200
url: /net/aspose.font.exceptions/fontexception/
---
## FontException class
Expand Down
32 changes: 32 additions & 0 deletions english/net/aspose.font.exceptions/fontmergeexception/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: Class FontMergeException
second_title: Aspose.Font for .NET API Reference
description: Aspose.Font.Exceptions.FontMergeException class. Represents Font merge exception. The exception may be thrown in case of errors while merging fonts
type: docs
weight: 210
url: /net/aspose.font.exceptions/fontmergeexception/
---
## FontMergeException class

Represents Font merge exception. The exception may be thrown in case of errors while merging fonts.

```csharp
public class FontMergeException : FontException
```

## Constructors

| Name | Description |
| --- | --- |
| [FontMergeException](fontmergeexception/#constructor)() | Initializes new `FontMergeException` object. |
| [FontMergeException](fontmergeexception/#constructor_2)(string) | Initializes new `FontMergeException` object. |
| [FontMergeException](fontmergeexception/#constructor_1)(SerializationInfo, StreamingContext) | Initializes new `FontMergeException` object. |
| [FontMergeException](fontmergeexception/#constructor_3)(string, Exception) | Initializes new `FontMergeException` object. |

### See Also

* class [FontException](../fontexception/)
* namespace [Aspose.Font.Exceptions](../../aspose.font.exceptions/)
* assembly [Aspose.Font](../../)


Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
title: FontMergeException.FontMergeException
second_title: Aspose.Font for .NET API Reference
description: FontMergeException constructor. Initializes new FontMergeException object
type: docs
weight: 10
url: /net/aspose.font.exceptions/fontmergeexception/fontmergeexception/
---
## FontMergeException() {#constructor}

Initializes new [`FontMergeException`](../) object.

```csharp
public FontMergeException()
```

### See Also

* class [FontMergeException](../)
* namespace [Aspose.Font.Exceptions](../../../aspose.font.exceptions/)
* assembly [Aspose.Font](../../../)

---

## FontMergeException(string) {#constructor_2}

Initializes new [`FontMergeException`](../) object.

```csharp
public FontMergeException(string message)
```

| Parameter | Type | Description |
| --- | --- | --- |
| message | String | A message that describes the error. |

### See Also

* class [FontMergeException](../)
* namespace [Aspose.Font.Exceptions](../../../aspose.font.exceptions/)
* assembly [Aspose.Font](../../../)

---

## FontMergeException(string, Exception) {#constructor_3}

Initializes new [`FontMergeException`](../) object.

```csharp
public FontMergeException(string message, Exception innerException)
```

| Parameter | Type | Description |
| --- | --- | --- |
| message | String | A message that describes the error. |
| innerException | Exception | The exception that is the cause of the current exception. |

### See Also

* class [FontMergeException](../)
* namespace [Aspose.Font.Exceptions](../../../aspose.font.exceptions/)
* assembly [Aspose.Font](../../../)

---

## FontMergeException(SerializationInfo, StreamingContext) {#constructor_1}

Initializes new [`FontMergeException`](../) object.

```csharp
public FontMergeException(SerializationInfo info, StreamingContext context)
```

| Parameter | Type | Description |
| --- | --- | --- |
| info | SerializationInfo | The object that holds the serialized object data. |
| context | StreamingContext | The contextual information about the source or destination. |

### See Also

* class [FontMergeException](../)
* namespace [Aspose.Font.Exceptions](../../../aspose.font.exceptions/)
* assembly [Aspose.Font](../../../)


Loading