Class representing the font manager.
More...
#include <pdffontdetails.h>
|
|
int | m_index |
| | Index number of this font.
|
| |
|
int | m_n |
| | Font object index.
|
| |
|
int | m_fn |
| | Font file index.
|
| |
|
int | m_ndiff |
| | Index of encoding differences object.
|
| |
|
wxPdfFontExtended | m_font |
| | Extended font for accessing font data.
|
| |
|
wxPdfSortedArrayInt * | m_usedGlyphs |
| | Array of used characters.
|
| |
|
wxPdfChar2GlyphMap * | m_subsetGlyphs |
| | Glyph substitution map for font subsets.
|
| |
Class representing the font manager.
◆ wxPdfFontDetails()
| wxPdfFontDetails::wxPdfFontDetails |
( |
int |
index, |
|
|
const wxPdfFont & |
font |
|
) |
| |
Constructor.
- Parameters
-
| index | the index of the font |
| font | the associated font |
◆ CanShow()
| bool wxPdfFontDetails::CanShow |
( |
const wxString & |
s | ) |
const |
Check whether the font contains glyphs for all characters of a string.
- Parameters
-
- Returns
true if all characters can be shown, false otherwise
◆ ConvertCID2GID()
| wxString wxPdfFontDetails::ConvertCID2GID |
( |
const wxString & |
s | ) |
|
Convert character codes to glyph numbers.
- Parameters
-
| s | the string to be converted |
- Returns
- the converted string
◆ ConvertGlyph()
| wxString wxPdfFontDetails::ConvertGlyph |
( |
wxUint32 |
glyph | ) |
|
Convert glyph number to string.
- Parameters
-
| glyph | the glyph to be converted |
- Returns
- the converted string
◆ CreateSubsetPrefix()
| wxString wxPdfFontDetails::CreateSubsetPrefix |
( |
| ) |
const |
Create a name prefix for a subset.
- Returns
- the subset prefix
◆ GetBaseEncoding()
| wxString wxPdfFontDetails::GetBaseEncoding |
( |
| ) |
const |
Get the name of the base encoding of the font.
- Returns
- the name of the base encoding
◆ GetDescription()
Get the font description.
- Returns
- the font description
◆ GetDiffIndex()
| int wxPdfFontDetails::GetDiffIndex |
( |
| ) |
const |
|
inline |
Get encoding differences index.
- Returns
- the index of the associated differences object
◆ GetDiffs()
| wxString wxPdfFontDetails::GetDiffs |
( |
| ) |
const |
Get encoding differences.
- Returns
- the font encoding differences
◆ GetFileIndex()
| int wxPdfFontDetails::GetFileIndex |
( |
| ) |
const |
|
inline |
Get font file index.
- Returns
- the index of the associated file object
◆ GetFont()
Get the font as an extended font object.
- Returns
- the extended font
◆ GetFontFamily()
| wxString wxPdfFontDetails::GetFontFamily |
( |
| ) |
const |
Get font family.
- Returns
- the font family
◆ GetIndex()
| int wxPdfFontDetails::GetIndex |
( |
| ) |
const |
|
inline |
Get font index.
- Returns
- the font index
◆ GetKerningWidthArray()
| wxArrayInt wxPdfFontDetails::GetKerningWidthArray |
( |
const wxString & |
s | ) |
const |
Get kerning width array.
- Parameters
-
| s | the string for which kerning information should be provided |
- Returns
- an array with indices and kerning width of the found kerning pairs. The array consists of information pairs: the first item (even indices) represents the index of the first character of a kerning pair within the string and the second item (odd indices) represents the kerning value.
◆ GetName()
| wxString wxPdfFontDetails::GetName |
( |
| ) |
const |
Get font name.
- Returns
- the font name (including subset prefix if appropriate)
◆ GetObjIndex()
| int wxPdfFontDetails::GetObjIndex |
( |
| ) |
const |
|
inline |
Get font object index.
- Returns
- the PDF object index
◆ GetOriginalName()
| wxString wxPdfFontDetails::GetOriginalName |
( |
| ) |
const |
Get original font name.
- Returns
- the original font name
◆ GetStringWidth()
| double wxPdfFontDetails::GetStringWidth |
( |
const wxString & |
s, |
|
|
bool |
withKerning = false, |
|
|
double |
charSpacing = 0 |
|
) |
| |
Get the width of a string.
- Parameters
-
| s | string for which the width should be calculated |
| withKerning | flag whether kerning should be taken into account |
| charSpacing | extra amount of spacing between characters (optional) |
- Returns
- the width of the string
◆ GetType()
| wxString wxPdfFontDetails::GetType |
( |
| ) |
const |
Get font type.
- Returns
- the font type
◆ GetUserFont()
| wxPdfFont wxPdfFontDetails::GetUserFont |
( |
| ) |
const |
Get the font as a user font object.
- Returns
- the user font
◆ GetWidthsAsString()
| wxString wxPdfFontDetails::GetWidthsAsString |
( |
| ) |
const |
Get the character width array as string.
- Returns
- the string representation of the character widths
◆ HasDiffs()
| bool wxPdfFontDetails::HasDiffs |
( |
| ) |
const |
Check whether the font has differences to WinAnsi encoding.
- Returns
true if the font has encoding differences, false otherwise
◆ SetDiffIndex()
| void wxPdfFontDetails::SetDiffIndex |
( |
int |
ndiff | ) |
|
|
inline |
Set encoding differences index.
- Parameters
-
| ndiff | the index of the associated differences object |
◆ SetFileIndex()
| void wxPdfFontDetails::SetFileIndex |
( |
int |
fn | ) |
|
|
inline |
Set font file index.
- Parameters
-
| fn | the index of the associated file object |
◆ SetIndex()
| void wxPdfFontDetails::SetIndex |
( |
int |
index | ) |
|
|
inline |
Set font index.
- Parameters
-
◆ SetObjIndex()
| void wxPdfFontDetails::SetObjIndex |
( |
int |
n | ) |
|
|
inline |
Set font object index.
- Parameters
-
◆ WriteCIDSet()
| size_t wxPdfFontDetails::WriteCIDSet |
( |
wxOutputStream * |
setData | ) |
|
Write CID set.
- Parameters
-
- Returns
- the size of the written data
◆ WriteCIDToGIDMap()
| size_t wxPdfFontDetails::WriteCIDToGIDMap |
( |
wxOutputStream * |
mapData | ) |
|
Write CID to GID mapping.
- Parameters
-
- Returns
- the size of the written data
◆ WriteFontData()
| size_t wxPdfFontDetails::WriteFontData |
( |
wxOutputStream * |
fontData | ) |
|
Write font data.
- Parameters
-
| fontData | the output stream |
- Returns
- the size of the written font data
◆ WriteUnicodeMap()
| size_t wxPdfFontDetails::WriteUnicodeMap |
( |
wxOutputStream * |
mapData | ) |
|
Write character/glyph to unicode mapping.
- Parameters
-
- Returns
- the size of the written data
The documentation for this class was generated from the following files: