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
2 changes: 2 additions & 0 deletions english/cpp/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ is_root: true
| [Aspose::Font::Cff](./aspose.font.cff/) | |
| [Aspose::Font::CffDataProviders](./aspose.font.cffdataproviders/) | |
| [Aspose::Font::CffExceptions](./aspose.font.cffexceptions/) | |
| [Aspose::Font::Common_FontMerger](./aspose.font.common_fontmerger/) | |
| [Aspose::Font::Exceptions](./aspose.font.exceptions/) | |
| [Aspose::Font::Factories](./aspose.font.factories/) | |
| [Aspose::Font::Glyphs](./aspose.font.glyphs/) | |
| [Aspose::Font::Interfaces](./aspose.font.interfaces/) | |
| [Aspose::Font::Licensing](./aspose.font.licensing/) | |
| [Aspose::Font::Renderers](./aspose.font.renderers/) | |
| [Aspose::Font::Rendering](./aspose.font.rendering/) | |
Expand Down
17 changes: 17 additions & 0 deletions english/cpp/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 namespace
linktitle: Aspose::Font::Common_FontMerger
second_title: Aspose.Font for C++
description: 'How to use Aspose::Font::Common_FontMerger namespace in C++.'
type: docs
weight: 500
url: /cpp/aspose.font.common_fontmerger/
---



## 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,32 @@
---
title: Aspose::Font::Common_FontMerger::FontCharactersMerger class
linktitle: FontCharactersMerger
second_title: Aspose.Font for C++
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 in C++.'
type: docs
weight: 100
url: /cpp/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.

```cpp
class FontCharactersMerger : public System::Object
```

## Methods

| Method | Description |
| --- | --- |
| virtual [get_PrimaryFont](./get_primaryfont/)() | Gets primary font. |
| virtual [get_SecondaryFont](./get_secondaryfont/)() | Gets secondary font. |
| virtual [MergeFonts](./mergefonts/)(System::ArrayPtr\<System::SharedPtr\<Aspose::Font::Glyphs::GlyphId\>\>, System::ArrayPtr\<System::SharedPtr\<Aspose::Font::Glyphs::GlyphId\>\>, System::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. |
| virtual [MergeFonts](./mergefonts/)(System::ArrayPtr\<uint32_t\>, System::ArrayPtr\<uint32_t\>, System::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](../../aspose.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: **MergeFonts(new uint[] { 'A', 'B' }, new uint[] { 'C', 'D' }, "NewFont")** |
| virtual [MergeFonts](./mergefonts/)(System::SharedPtr\<System::Collections::Generic::IDictionary\<uint32_t, System::SharedPtr\<Aspose::Font::Glyphs::GlyphId\>\>\>, System::SharedPtr\<System::Collections::Generic::IDictionary\<uint32_t, System::SharedPtr\<Aspose::Font::Glyphs::GlyphId\>\>\>, System::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. |
## See Also

* Class [Object](../../system/object/)
* Namespace [Aspose::Font::Common_FontMerger](../)
* Library [Aspose.Font for C++](../../)
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: Aspose::Font::Common_FontMerger::FontCharactersMerger::get_PrimaryFont method
linktitle: get_PrimaryFont
second_title: Aspose.Font for C++
description: 'Aspose::Font::Common_FontMerger::FontCharactersMerger::get_PrimaryFont method. Gets primary font in C++.'
type: docs
weight: 100
url: /cpp/aspose.font.common_fontmerger/fontcharactersmerger/get_primaryfont/
---
## FontCharactersMerger::get_PrimaryFont method


Gets primary font.

```cpp
virtual System::SharedPtr<Aspose::Font::Font> Aspose::Font::Common_FontMerger::FontCharactersMerger::get_PrimaryFont()=0
```

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Font](../../../aspose.font/font/)
* Class [FontCharactersMerger](../)
* Namespace [Aspose::Font::Common_FontMerger](../../)
* Library [Aspose.Font for C++](../../../)
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: Aspose::Font::Common_FontMerger::FontCharactersMerger::get_SecondaryFont method
linktitle: get_SecondaryFont
second_title: Aspose.Font for C++
description: 'Aspose::Font::Common_FontMerger::FontCharactersMerger::get_SecondaryFont method. Gets secondary font in C++.'
type: docs
weight: 200
url: /cpp/aspose.font.common_fontmerger/fontcharactersmerger/get_secondaryfont/
---
## FontCharactersMerger::get_SecondaryFont method


Gets secondary font.

```cpp
virtual System::SharedPtr<Aspose::Font::Font> Aspose::Font::Common_FontMerger::FontCharactersMerger::get_SecondaryFont()=0
```

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Font](../../../aspose.font/font/)
* Class [FontCharactersMerger](../)
* Namespace [Aspose::Font::Common_FontMerger](../../)
* Library [Aspose.Font for C++](../../../)
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
---
title: Aspose::Font::Common_FontMerger::FontCharactersMerger::MergeFonts method
linktitle: MergeFonts
second_title: Aspose.Font for C++
description: 'Aspose::Font::Common_FontMerger::FontCharactersMerger::MergeFonts 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 in C++.'
type: docs
weight: 300
url: /cpp/aspose.font.common_fontmerger/fontcharactersmerger/mergefonts/
---
## FontCharactersMerger::MergeFonts(System::ArrayPtr\<System::SharedPtr\<Aspose::Font::Glyphs::GlyphId\>\>, System::ArrayPtr\<System::SharedPtr\<Aspose::Font::Glyphs::GlyphId\>\>, System::String) 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.

```cpp
virtual System::SharedPtr<Aspose::Font::Font> Aspose::Font::Common_FontMerger::FontCharactersMerger::MergeFonts(System::ArrayPtr<System::SharedPtr<Aspose::Font::Glyphs::GlyphId>> primaryFontGlyphs, System::ArrayPtr<System::SharedPtr<Aspose::Font::Glyphs::GlyphId>> secondaryFontGlyphs, System::String newFontName)=0
```


| Parameter | Type | Description |
| --- | --- | --- |
| primaryFontGlyphs | System::ArrayPtr\<System::SharedPtr\<Aspose::Font::Glyphs::GlyphId\>\> | List of glyphs to take from primary font |
| secondaryFontGlyphs | System::ArrayPtr\<System::SharedPtr\<Aspose::Font::Glyphs::GlyphId\>\> | List of glyphs to take from secondary font |
| newFontName | System::String | Desired name for resultant font |

### ReturnValue

Merged font

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Font](../../../aspose.font/font/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [GlyphId](../../../aspose.font.glyphs/glyphid/)
* Class [String](../../../system/string/)
* Class [FontCharactersMerger](../)
* Namespace [Aspose::Font::Common_FontMerger](../../)
* Library [Aspose.Font for C++](../../../)
## FontCharactersMerger::MergeFonts(System::ArrayPtr\<uint32_t\>, System::ArrayPtr\<uint32_t\>, System::String) method


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](../../../aspose.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: **MergeFonts(new uint[] { 'A', 'B' }, new uint[] { 'C', 'D' }, "NewFont")**

```cpp
virtual System::SharedPtr<Aspose::Font::Font> Aspose::Font::Common_FontMerger::FontCharactersMerger::MergeFonts(System::ArrayPtr<uint32_t> primaryFontCharCodes, System::ArrayPtr<uint32_t> secondaryFontCharCodes, System::String newFontName)=0
```


| Parameter | Type | Description |
| --- | --- | --- |
| primaryFontCharCodes | System::ArrayPtr\<uint32_t\> | Codes to take from primary font |
| secondaryFontCharCodes | System::ArrayPtr\<uint32_t\> | Codes to take from secondary font |
| newFontName | System::String | Desired name for resultant font |

### ReturnValue

Merged font

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Font](../../../aspose.font/font/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [String](../../../system/string/)
* Class [FontCharactersMerger](../)
* Namespace [Aspose::Font::Common_FontMerger](../../)
* Library [Aspose.Font for C++](../../../)
## FontCharactersMerger::MergeFonts(System::SharedPtr\<System::Collections::Generic::IDictionary\<uint32_t, System::SharedPtr\<Aspose::Font::Glyphs::GlyphId\>\>\>, System::SharedPtr\<System::Collections::Generic::IDictionary\<uint32_t, System::SharedPtr\<Aspose::Font::Glyphs::GlyphId\>\>\>, System::String) method


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.

```cpp
virtual System::SharedPtr<Aspose::Font::Font> Aspose::Font::Common_FontMerger::FontCharactersMerger::MergeFonts(System::SharedPtr<System::Collections::Generic::IDictionary<uint32_t, System::SharedPtr<Aspose::Font::Glyphs::GlyphId>>> primaryFontDict, System::SharedPtr<System::Collections::Generic::IDictionary<uint32_t, System::SharedPtr<Aspose::Font::Glyphs::GlyphId>>> secondaryFontDict, System::String newFontName)=0
```


| Parameter | Type | Description |
| --- | --- | --- |
| primaryFontDict | System::SharedPtr\<System::Collections::Generic::IDictionary\<uint32_t, System::SharedPtr\<Aspose::Font::Glyphs::GlyphId\>\>\> | Dictionary with pairs [symbol code, glyph identifier] from primary font |
| secondaryFontDict | System::SharedPtr\<System::Collections::Generic::IDictionary\<uint32_t, System::SharedPtr\<Aspose::Font::Glyphs::GlyphId\>\>\> | Dictionary with pairs [symbol code, glyph identifier] from secondary font |
| newFontName | System::String | Desired name for resultant font |

### ReturnValue

Merged font

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Font](../../../aspose.font/font/)
* Class [IDictionary](../../../system.collections.generic/idictionary/)
* Class [GlyphId](../../../aspose.font.glyphs/glyphid/)
* Class [String](../../../system/string/)
* Class [FontCharactersMerger](../)
* Namespace [Aspose::Font::Common_FontMerger](../../)
* Library [Aspose.Font for C++](../../../)
3 changes: 2 additions & 1 deletion english/cpp/aspose.font.exceptions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: Aspose::Font::Exceptions
second_title: Aspose.Font for C++
description: 'How to use Aspose::Font::Exceptions namespace in C++.'
type: docs
weight: 500
weight: 600
url: /cpp/aspose.font.exceptions/
---

Expand All @@ -19,6 +19,7 @@ url: /cpp/aspose.font.exceptions/
| [FontConversionException](./fontconversionexception/) | |
| [FontCreationException](./fontcreationexception/) | |
| [FontException](./fontexception/) | |
| [FontMergeException](./fontmergeexception/) | |
| [FontNotSupportedOperationException](./fontnotsupportedoperationexception/) | |
| [IncorrectFontDataException](./incorrectfontdataexception/) | |
| [LicenseRestrictionException](./licenserestrictionexception/) | |
Expand Down
22 changes: 22 additions & 0 deletions english/cpp/aspose.font.exceptions/fontmergeexception/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: Aspose::Font::Exceptions::FontMergeException typedef
linktitle: FontMergeException
second_title: Aspose.Font for C++
description: 'How to use Aspose::Font::Exceptions::FontMergeException typedef in C++.'
type: docs
weight: 600
url: /cpp/aspose.font.exceptions/fontmergeexception/
---
## FontMergeException typedef




```cpp
using Aspose::Font::Exceptions::FontMergeException = System::ExceptionWrapper<Details_FontMergeException>
```

## See Also

* Namespace [Aspose::Font::Exceptions](../)
* Library [Aspose.Font for C++](../../)
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: FontNotSupportedOperationException
second_title: Aspose.Font for C++
description: 'How to use Aspose::Font::Exceptions::FontNotSupportedOperationException typedef in C++.'
type: docs
weight: 600
weight: 700
url: /cpp/aspose.font.exceptions/fontnotsupportedoperationexception/
---
## FontNotSupportedOperationException typedef
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: IncorrectFontDataException
second_title: Aspose.Font for C++
description: 'How to use Aspose::Font::Exceptions::IncorrectFontDataException typedef in C++.'
type: docs
weight: 700
weight: 800
url: /cpp/aspose.font.exceptions/incorrectfontdataexception/
---
## IncorrectFontDataException typedef
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: LicenseRestrictionException
second_title: Aspose.Font for C++
description: 'How to use Aspose::Font::Exceptions::LicenseRestrictionException typedef in C++.'
type: docs
weight: 800
weight: 900
url: /cpp/aspose.font.exceptions/licenserestrictionexception/
---
## LicenseRestrictionException typedef
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: SvgConversionException
second_title: Aspose.Font for C++
description: 'How to use Aspose::Font::Exceptions::SvgConversionException typedef in C++.'
type: docs
weight: 900
weight: 1000
url: /cpp/aspose.font.exceptions/svgconversionexception/
---
## SvgConversionException typedef
Expand Down
2 changes: 1 addition & 1 deletion english/cpp/aspose.font.factories/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: Aspose::Font::Factories
second_title: Aspose.Font for C++
description: 'How to use Aspose::Font::Factories namespace in C++.'
type: docs
weight: 600
weight: 700
url: /cpp/aspose.font.factories/
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class TextUtilsFactory : public System::Object

| Method | Description |
| --- | --- |
| [GetFontCharactersMerger](./getfontcharactersmerger/)(System::SharedPtr\<Aspose::Font::Font\>, System::SharedPtr\<Aspose::Font::Font\>, FontType) | Gets instance of [FontCharactersMerger](../) class. |
| [GetFontMorseDecoder](./getfontmorsedecoder/)() | Gets [IFontMorseDecoder](../) instance. |
| [GetFontMorseEncoder](./getfontmorseencoder/)() | Gets [IFontMorseEncoder](../) instance. |
| [GetMorseDecoder](./getmorsedecoder/)() | Gets [IMorseDecoder](../) instance. |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
title: Aspose::Font::Factories::TextUtilsFactory::GetFontCharactersMerger method
linktitle: GetFontCharactersMerger
second_title: Aspose.Font for C++
description: 'Aspose::Font::Factories::TextUtilsFactory::GetFontCharactersMerger method. Gets instance of FontCharactersMerger class in C++.'
type: docs
weight: 200
url: /cpp/aspose.font.factories/textutilsfactory/getfontcharactersmerger/
---
## TextUtilsFactory::GetFontCharactersMerger method


Gets instance of [FontCharactersMerger](../) class.

```cpp
System::SharedPtr<Aspose::Font::Common_FontMerger::FontCharactersMerger> Aspose::Font::Factories::TextUtilsFactory::GetFontCharactersMerger(System::SharedPtr<Aspose::Font::Font> primaryFont, System::SharedPtr<Aspose::Font::Font> secondaryFont, FontType outType)
```


| Parameter | Type | Description |
| --- | --- | --- |
| primaryFont | System::SharedPtr\<Aspose::Font::Font\> | Primary font to take glyphs from |
| secondaryFont | System::SharedPtr\<Aspose::Font::Font\> | Secondary font to take glyphs from |
| outType | FontType | The format of the output merged font. |

### ReturnValue

Fonts merger interface or null if no appropriate merger found for input font format



## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [FontCharactersMerger](../../../aspose.font.common_fontmerger/fontcharactersmerger/)
* Class [Font](../../../aspose.font/font/)
* Enum [FontType](../../../aspose.font/fonttype/)
* Class [TextUtilsFactory](../)
* Namespace [Aspose::Font::Factories](../../)
* Library [Aspose.Font for C++](../../../)
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: GetFontMorseDecoder
second_title: Aspose.Font for C++
description: 'Aspose::Font::Factories::TextUtilsFactory::GetFontMorseDecoder method. Gets IFontMorseDecoder instance in C++.'
type: docs
weight: 200
weight: 300
url: /cpp/aspose.font.factories/textutilsfactory/getfontmorsedecoder/
---
## TextUtilsFactory::GetFontMorseDecoder method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: GetFontMorseEncoder
second_title: Aspose.Font for C++
description: 'Aspose::Font::Factories::TextUtilsFactory::GetFontMorseEncoder method. Gets IFontMorseEncoder instance in C++.'
type: docs
weight: 300
weight: 400
url: /cpp/aspose.font.factories/textutilsfactory/getfontmorseencoder/
---
## TextUtilsFactory::GetFontMorseEncoder method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: GetMorseDecoder
second_title: Aspose.Font for C++
description: 'Aspose::Font::Factories::TextUtilsFactory::GetMorseDecoder method. Gets IMorseDecoder instance in C++.'
type: docs
weight: 400
weight: 500
url: /cpp/aspose.font.factories/textutilsfactory/getmorsedecoder/
---
## TextUtilsFactory::GetMorseDecoder method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: GetMorseEncoder
second_title: Aspose.Font for C++
description: 'Aspose::Font::Factories::TextUtilsFactory::GetMorseEncoder method. Gets IMorseEncoder instance in C++.'
type: docs
weight: 500
weight: 600
url: /cpp/aspose.font.factories/textutilsfactory/getmorseencoder/
---
## TextUtilsFactory::GetMorseEncoder method
Expand Down
2 changes: 1 addition & 1 deletion english/cpp/aspose.font.glyphs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: Aspose::Font::Glyphs
second_title: Aspose.Font for C++
description: 'How to use Aspose::Font::Glyphs namespace in C++.'
type: docs
weight: 700
weight: 800
url: /cpp/aspose.font.glyphs/
---

Expand Down
Loading