LibreOffice Module vcl (master)
1
|
#include <fontcharmap.hxx>
Public Member Functions | |
FontCharMap () | |
A new FontCharMap is created based on a "default" map, which includes all codepoints in the Unicode BMP range, including surrogates. More... | |
FontCharMap (const CmapResult &rCR) | |
A new FontCharMap is created based on the CmapResult. More... | |
virtual | ~FontCharMap () override |
bool | IsDefaultMap () const |
Determines if the font character map is the "default". More... | |
bool | HasChar (sal_UCS4) const |
Does the font character map include the UCS4 character? More... | |
int | CountCharsInRange (sal_UCS4 cMin, sal_UCS4 cMax) const |
Returns the number of chars supported by the font, which are inside the unicode range from cMin to cMax (inclusive). More... | |
int | GetCharCount () const |
Get the number of characters in the font character map. More... | |
sal_UCS4 | GetFirstChar () const |
Get the first character in the font character map. More... | |
sal_UCS4 | GetLastChar () const |
Get the last character in the font character map. More... | |
sal_UCS4 | GetNextChar (sal_UCS4 cChar) const |
Get the next character in the font character map. More... | |
sal_UCS4 | GetPrevChar (sal_UCS4 cChar) const |
Get the previous character in the font character map. More... | |
int | GetIndexFromChar (sal_UCS4 cChar) const |
Get the index of a particular character in the font character map. More... | |
sal_UCS4 | GetCharFromIndex (int nCharIndex) const |
Get the character at a particular index in the font character map. More... | |
int | GetGlyphIndex (sal_UCS4) const |
bool | isSymbolic () const |
![]() | |
SvRefBase () | |
SvRefBase (const SvRefBase &) | |
SvRefBase & | operator= (const SvRefBase &) |
void | RestoreNoDelete () |
void | AddNextRef () |
void | AddFirstRef () |
void | ReleaseRef () |
unsigned int | GetRefCount () const |
Static Public Member Functions | |
static FontCharMapRef | GetDefaultMap (bool bSymbols) |
Get the default font character map. More... | |
Private Member Functions | |
int | findRangeIndex (sal_UCS4) const |
FontCharMap (ImplFontCharMapRef const &pIFCMap) | |
FontCharMap (const FontCharMap &)=delete | |
void | operator= (const FontCharMap &)=delete |
Private Attributes | |
ImplFontCharMapRef | mpImplFontCharMap |
Friends | |
class | ::OutputDevice |
Additional Inherited Members | |
![]() | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
Definition at line 35 of file fontcharmap.hxx.
FontCharMap::FontCharMap | ( | ) |
A new FontCharMap is created based on a "default" map, which includes all codepoints in the Unicode BMP range, including surrogates.
Definition at line 429 of file fontcharmap.cxx.
Referenced by GetDefaultMap().
FontCharMap::FontCharMap | ( | const CmapResult & | rCR | ) |
A new FontCharMap is created based on the CmapResult.
Definition at line 439 of file fontcharmap.cxx.
|
overridevirtual |
Definition at line 444 of file fontcharmap.cxx.
References mpImplFontCharMap.
|
private |
Definition at line 434 of file fontcharmap.cxx.
|
privatedelete |
Returns the number of chars supported by the font, which are inside the unicode range from cMin to cMax (inclusive).
cMin | Lowest codepoint in range to be counted |
cMax | Highest codepoint in range to be counted |
Definition at line 467 of file fontcharmap.cxx.
References findRangeIndex(), i, mpImplFontCharMap, ImplFontCharMap::mpRangeCodes, and nCount.
Definition at line 582 of file fontcharmap.cxx.
References ImplFontCharMap::mnRangeCount, mpImplFontCharMap, and ImplFontCharMap::mpRangeCodes.
Referenced by CountCharsInRange(), GetGlyphIndex(), GetNextChar(), GetPrevChar(), and HasChar().
int FontCharMap::GetCharCount | ( | ) | const |
Get the number of characters in the font character map.
Definition at line 462 of file fontcharmap.cxx.
References ImplFontCharMap::mnCharCount, and mpImplFontCharMap.
Referenced by SalGraphics::GetGlyphWidths().
Get the character at a particular index in the font character map.
The index is different from the codepoint, because font character maps can
determine the character.
nCharIndex | Index used to find the character |
Definition at line 565 of file fontcharmap.cxx.
References i, ImplFontCharMap::mnRangeCount, mpImplFontCharMap, and ImplFontCharMap::mpRangeCodes.
|
static |
Get the default font character map.
Definition at line 449 of file fontcharmap.cxx.
References FontCharMap(), and ImplFontCharMap::getDefaultMap().
Referenced by vcl::pdf::BuildinFont::GetFontCharMap().
sal_UCS4 FontCharMap::GetFirstChar | ( | ) | const |
Get the first character in the font character map.
Definition at line 509 of file fontcharmap.cxx.
References mpImplFontCharMap, and ImplFontCharMap::mpRangeCodes.
Referenced by SalGraphics::GetGlyphWidths(), GetNextChar(), GetPrevChar(), and WMFWriter::SetAllAttr().
Definition at line 599 of file fontcharmap.cxx.
References findRangeIndex(), ImplFontCharMap::mpGlyphIds, mpImplFontCharMap, ImplFontCharMap::mpRangeCodes, and ImplFontCharMap::mpStartGlyphs.
Referenced by vcl::PDFWriterImpl::createDefaultCheckBoxAppearance(), SalGraphics::GetGlyphWidths(), and HasChar().
Get the index of a particular character in the font character map.
The index is different from the codepoint, because font character maps can
determine the index.
cChar | Character used to find index number |
Definition at line 545 of file fontcharmap.cxx.
References i, ImplFontCharMap::mnRangeCount, mpImplFontCharMap, and ImplFontCharMap::mpRangeCodes.
sal_UCS4 FontCharMap::GetLastChar | ( | ) | const |
Get the last character in the font character map.
Definition at line 514 of file fontcharmap.cxx.
References ImplFontCharMap::mnRangeCount, mpImplFontCharMap, and ImplFontCharMap::mpRangeCodes.
Referenced by GetNextChar(), and GetPrevChar().
Get the next character in the font character map.
This is important because character maps (e.g. the default map which holds the characters in the BMP plane) can have discontiguous ranges.
cChar | Character from which to find next character |
Definition at line 519 of file fontcharmap.cxx.
References findRangeIndex(), GetFirstChar(), GetLastChar(), mpImplFontCharMap, and ImplFontCharMap::mpRangeCodes.
Referenced by SalGraphics::GetGlyphWidths().
Get the previous character in the font character map.
This is important because character maps (e.g. the default map which holds the characters in the BMP plane) can have discontiguous ranges.
cChar | Character from which to find previous character |
Definition at line 532 of file fontcharmap.cxx.
References findRangeIndex(), GetFirstChar(), GetLastChar(), mpImplFontCharMap, and ImplFontCharMap::mpRangeCodes.
bool FontCharMap::HasChar | ( | sal_UCS4 | cChar | ) | const |
Does the font character map include the UCS4 character?
Definition at line 492 of file fontcharmap.cxx.
References findRangeIndex(), GetGlyphIndex(), mpImplFontCharMap, and ImplFontCharMap::mpStartGlyphs.
Referenced by WinFontFace::HasChar(), and OutputDevice::HasGlyphs().
bool FontCharMap::IsDefaultMap | ( | ) | const |
Determines if the font character map is the "default".
The default map includes all codepoints in the Unicode BMP range, including surrogates.
Definition at line 455 of file fontcharmap.cxx.
References ImplFontCharMap::isDefaultMap(), and mpImplFontCharMap.
Referenced by OutputDevice::GetFontCharMap().
bool FontCharMap::isSymbolic | ( | ) | const |
Definition at line 460 of file fontcharmap.cxx.
References ImplFontCharMap::m_bSymbolic, and mpImplFontCharMap.
Referenced by vcl::GetTTGlobalFontInfo().
|
privatedelete |
|
friend |
Definition at line 146 of file fontcharmap.hxx.
|
private |
Definition at line 144 of file fontcharmap.hxx.
Referenced by CountCharsInRange(), findRangeIndex(), GetCharCount(), GetCharFromIndex(), GetFirstChar(), GetGlyphIndex(), GetIndexFromChar(), GetLastChar(), GetNextChar(), GetPrevChar(), HasChar(), IsDefaultMap(), isSymbolic(), and ~FontCharMap().