Docmosis API 4.8.0

com.docmosis.template.analysis.fontmapping
Class FontMappingUseItem

java.lang.Object
  extended by 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

Constructor Summary
FontMappingUseItem(String originalFont, String[] usedFonts, int count)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getCount()
          Count of each render of a piece of text.
 String getOriginalFont()
          The original font specidied in the template.
 String[] getUsedFonts()
          The first element is the font selected based on originalFont, this will usually be the originalFont if it is present.
 int hashCode()
           
 boolean isSubstitution()
          True if this mapping is substituting the originalFont with a different font.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FontMappingUseItem

public FontMappingUseItem(String originalFont,
                          String[] usedFonts,
                          int count)
Method Detail

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

Docmosis API 4.8.0

Copyright © 2014–2024 Docmosis Pty Ltd. All rights reserved.