Class representing the font manager.
More...
#include <pdffontdetails.h>
List of all members.
Detailed Description
Class representing the font manager.
Constructor & Destructor Documentation
| wxPdfFontDetails::wxPdfFontDetails |
( |
int |
index, |
|
|
const wxPdfFont & |
font |
|
) |
| |
Constructor.
- Parameters:
-
| index | the index of the font |
| font | the associated font |
| wxPdfFontDetails::~wxPdfFontDetails |
( |
) |
|
Member Function Documentation
| wxString wxPdfFontDetails::ConvertCID2GID |
( |
const wxString & |
s ) |
|
Convert character codes to glyph numbers.
- Parameters:
-
| s | the string to be converted |
- Returns:
- the converted string
| wxString wxPdfFontDetails::ConvertGlyph |
( |
wxUint32 |
glyph ) |
|
Convert glyph number to string.
- Parameters:
-
| glyph | the glyph to be converted |
- Returns:
- the converted string
| wxString wxPdfFontDetails::CreateSubsetPrefix |
( |
) |
const |
Create a name prefix for a subset.
- Returns:
- the subset prefix
| wxString wxPdfFontDetails::GetBaseEncoding |
( |
) |
const |
Get the name of the base encoding of the font.
- Returns:
- the name of the base encoding
Get the font description.
- Returns:
- the font description
| int wxPdfFontDetails::GetDiffIndex |
( |
) |
const [inline] |
Get encoding differences index.
- Returns:
- the index of the associated differences object
| wxString wxPdfFontDetails::GetDiffs |
( |
) |
const |
Get encoding differences.
- Returns:
- the font encoding differences
| wxMBConv* wxPdfFontDetails::GetEncodingConv |
( |
) |
const |
Get the associated encoding converter.
- Returns:
- the encoding converter associated with this font
| int wxPdfFontDetails::GetFileIndex |
( |
) |
const [inline] |
Get font file index.
- Returns:
- the index of the associated file object
Get the font as an extended font object.
- Returns:
- the extended font
| wxString wxPdfFontDetails::GetFontFamily |
( |
) |
const |
Get font family.
- Returns:
- the font family
| int wxPdfFontDetails::GetIndex |
( |
) |
const [inline] |
Get font index.
- Returns:
- the font index
| 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.
| wxString wxPdfFontDetails::GetName |
( |
) |
const |
Get font name.
- Returns:
- the font name (including subset prefix if appropriate)
| int wxPdfFontDetails::GetObjIndex |
( |
) |
const [inline] |
Get font object index.
- Returns:
- the PDF object index
| wxString wxPdfFontDetails::GetOriginalName |
( |
) |
const |
Get original font name.
- Returns:
- the original font name
| double wxPdfFontDetails::GetStringWidth |
( |
const wxString & |
s, |
|
|
bool |
withKerning = false |
|
) |
| |
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 |
- Returns:
- the width of the string
| wxString wxPdfFontDetails::GetType |
( |
) |
const |
Get font type.
- Returns:
- the font type
| wxPdfFont wxPdfFontDetails::GetUserFont |
( |
) |
const |
Get the font as a user font object.
- Returns:
- the user font
| wxString wxPdfFontDetails::GetWidthsAsString |
( |
) |
const |
Get the character width array as string.
- Returns:
- the string representation of the character widths
| bool wxPdfFontDetails::HasDiffs |
( |
) |
const |
Check whether the font has differences to WinAnsi encoding.
- Returns:
- TRUE if the font has encoding differences, FALSE otherwise
| void wxPdfFontDetails::SetDiffIndex |
( |
int |
ndiff ) |
[inline] |
Set encoding differences index.
- Parameters:
-
| ndiff | the index of the associated differences object |
| void wxPdfFontDetails::SetFileIndex |
( |
int |
fn ) |
[inline] |
Set font file index.
- Parameters:
-
| fn | the index of the associated file object |
| void wxPdfFontDetails::SetIndex |
( |
int |
index ) |
[inline] |
Set font index.
- Parameters:
-
| void wxPdfFontDetails::SetObjIndex |
( |
int |
n ) |
[inline] |
Set font object index.
- Parameters:
-
| size_t wxPdfFontDetails::WriteFontData |
( |
wxOutputStream * |
fontData ) |
|
Write font data.
- Parameters:
-
| fontData | the output stream |
- Returns:
- the size of the written font data
| size_t wxPdfFontDetails::WriteUnicodeMap |
( |
wxOutputStream * |
mapData ) |
|
Write character/glyph to unicode mapping.
- Parameters:
-
- Returns:
- the size of the written data
Member Data Documentation
Extended font for accessing font data.
Index number of this font.
Index of encoding differences object.
Glyph substitution map for font subsets.
Array of used characters.
The documentation for this class was generated from the following file: