com.docmosis.template.analysis.fontmapping
Class FontMappingUseItem
java.lang.Object
com.docmosis.template.analysis.fontmapping.FontMappingUseItem
- All Implemented Interfaces:
- Serializable
public class FontMappingUseItem
- extends Object
- implements Serializable
Java representation of the struct used for font mappings in LO.
Represents a single font mapping and a count of usage.
struct FontMappingUseItem
{
OUString mOriginalFont;
std::vector mUsedFonts;
int mCount;
};
Commit: https://cgit.freedesktop.org/libreoffice/core/commit/?id=5054202e71605cb4f10c798be766798d99cb1b6a
- See Also:
- Serialized Form
FontMappingUseItem
public FontMappingUseItem(String originalFont,
String[] usedFonts,
int count)
getOriginalFont
public String getOriginalFont()
- The original font specidied in the template.
- Returns:
getUsedFonts
public String[] getUsedFonts()
- The first element is the font selected based on
originalFont, this will usually be the originalFont if it is present.
Additional elements in the array are fallback fonts needed to resolve glyphs that the first one doesn't provide.
- Returns:
getCount
public int getCount()
- Count of each render of a piece of text.
This count should be taken as an estimate, as text may be rendered multiple times and caching may avoid some text rendering calls.
- Returns:
isSubstitution
public boolean isSubstitution()
- True if this mapping is substituting the
originalFont with a different font.
- Returns:
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2014–2025 Docmosis Pty Ltd. All rights reserved.