7#ifndef __HDI_CORE_FONT__
8#define __HDI_CORE_FONT__
14 #if defined(HDI_CORE_AIP_MODE)
19 #elif defined(HDI_CORE_PSP_MODE)
30 #if defined(HDI_CORE_AIP_MODE)
154 virtual std::string
name()
const;
158 friend void* __accessImpl(
const Typeface&);
170 void* __impl()
const;
173 typedef std::unique_ptr<Typeface> TypefaceUP;
174 typedef std::shared_ptr<Typeface> TypefaceSP;
175 typedef std::weak_ptr<Typeface> TypefaceWP;
185 #if defined(HDI_CORE_AIP_MODE)
208 DontCareEncoding = 10,
209 StandardEncoding = 20,
222 ChineseTraditionalScript = 40,
223 ChineseSimplifiedScript = 50,
228 CyrillicScript = 100,
229 EastEuropeanRomanScript = 110,
243 MojiZumeGXTrueType = 20,
244 MojiZumePageMakerJ = 30,
328 typedef std::unique_ptr<Info> InfoUP;
329 typedef std::shared_ptr<Info> InfoSP;
330 typedef std::weak_ptr<Info> InfoWP;
352 #if defined(HDI_CORE_AIP_MODE)
401 #if defined(HDI_CORE_AIP_MODE)
453 virtual std::string
name()
const;
497 #if defined(HDI_CORE_AIP_MODE)
498 friend aip::Font* __accessImpl(
const Font&);
499 friend Font __accessCtor(
const aip::Font&);
511 Font(
const aip::Font&);
512 #elif defined(HDI_CORE_PSP_MODE)
513 friend psp::Font* __accessImpl(
const Font&);
514 friend Font __accessCtor(
const psp::Font&);
526 Font(
const psp::Font&);
530 typedef std::unique_ptr<Font> FontUP;
531 typedef std::shared_ptr<Font> FontSP;
532 typedef std::weak_ptr<Font> FontWP;
534 #if defined(HDI_CORE_AIP_MODE)
535 extern void* __accessImpl(
const Typeface&);
536 extern aip::Font* __accessImpl(
const Font&);
537 extern Font __accessCtor(
const aip::Font&);
538 #elif defined(HDI_CORE_PSP_MODE)
539 extern psp::Font* __accessImpl(
const Font&);
540 extern Font __accessCtor(
const psp::Font&);
Describes style information for an individual font.
Definition: hdicoreFont.h:190
Script script
Font face script.
Definition: hdicoreFont.h:261
Format
Describes the font format.
Definition: hdicoreFont.h:196
bool familyInstalled
Is the font family installed?
Definition: hdicoreFont.h:271
bool originalEncoding
Is the font the original encoding?
Definition: hdicoreFont.h:266
Encoding
Describes the font encoding.
Definition: hdicoreFont.h:206
bool fauxedInstalled
Is the font fauxed for another missing font?
Definition: hdicoreFont.h:276
Script
Describes the font script.
Definition: hdicoreFont.h:217
virtual ~Info()
Destructs an Info object.
Format format
Font face formatting.
Definition: hdicoreFont.h:251
MojiZumeType mojiZumeType
MojiZume type of the font.
Definition: hdicoreFont.h:286
bool isCID
Is the font character ID-keyed?
Definition: hdicoreFont.h:281
bool isATC
Is the font Adobe Type Composer?
Definition: hdicoreFont.h:306
bool isMultipleMaster
Is the font Adobe Multiple Master?
Definition: hdicoreFont.h:311
bool isBitmap
Is the font bitmap?
Definition: hdicoreFont.h:296
Info()
Constructs an Info object with default values.
bool isOTF
Is the font OpenType?
Definition: hdicoreFont.h:291
bool isOCF
Is the font Original Composer Format?
Definition: hdicoreFont.h:301
MojiZumeType
Describes the font MojiZume type.
Definition: hdicoreFont.h:240
Encoding encoding
Font face encoding.
Definition: hdicoreFont.h:256
Font class to allow for easy font manipulation.
Definition: hdicoreFont.h:183
Font()
Creates a Font object with the default native script (e.g. roman, cyrillic, etc.)
virtual std::string postScriptName() const
Gets the PostScript name of the font.
virtual Font & operator=(const Font &rhs_)
Overloaded assignment operator for Font objects.
Font(const AIFontKey aiFont_)
Constructs a new Font object from an AIFontKey.
virtual std::string familyName() const
Gets the name of the family for the target font.
virtual PlatformFontPtr platformFont(const double size_) const
Gets the platform font for the target Adobe app font, if available.
virtual bool substituted() const
Gets whether the target font is substituted or not.
virtual bool operator==(const Font &rhs_) const
Tests whether a given Font object is the same as another.
virtual Info info() const
Gets the font's style info.
virtual AIFontKey aiFontKey() const
Gets the font key around which the target object is wrapped.
virtual bool operator!=(const Font &rhs_) const
Tests whether a given Font object is not the same as another.
virtual std::string name() const
Gets the name of the font.
virtual ~Font()
Destructs a Font object.
Font(const Font &f_)
Font copy constructor.
virtual bool typefaceAndStyle(Typeface &tf__, int32_t &style__)
Gets the typeface (family) and style variant of the target font.
virtual std::string styleName() const
Gets the name of the style for the target font.
Typeface class to allow for easy typeface manipulation.
Definition: hdicoreFont.h:35
virtual ~Typeface()
Typeface object destructor.
Typeface(const Typeface &tf_)
Constructs a new Typeface object from an existing Typeface object (copy constructor)
virtual int32_t styleCount() const
Gets the total number of variants (such as bold and italic) of a font family.
virtual std::unique_ptr< Font > styleAtIndex(const int32_t index_)
Gets a variant of a font family by index position.
virtual std::string name() const
Gets the name of the typeface.
Typeface()
Constructs an empty Typeface object.
virtual bool isEmpty() const
Gets whether the target Typeface object is empty (constructed with the default ctor)
virtual Typeface & operator=(const Typeface &rhs_)
Assigns one Typeface object to another.
virtual bool operator==(const Typeface &rhs_) const
Tests whether a given Typeface object is the same as another.
Typeface(const AITypefaceKey aiTF_)
Constructs a new Typeface object from an AITypefaceKey.
virtual AITypefaceKey aiTypefaceKey() const
Gets the typeface key around which the target object is wrapped.
virtual bool operator!=(const Typeface &rhs_) const
Tests whether a given Typeface object is not the same as another.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.