return GetImplementation(*this).IsColorGlyph(fontId, glyphIndex);
}
+bool FontClient::IsColorFont(FontId fontId)
+{
+ return GetImplementation(*this).IsColorFont(fontId);
+}
+
bool FontClient::AddCustomFontDirectory(const FontPath& path)
{
return GetImplementation(*this).AddCustomFontDirectory(path);
*/
bool IsColorGlyph(FontId fontId, GlyphIndex glyphIndex);
+ /**
+ * @brief Whether the given glyph font is a color.
+ *
+ * @param[in] fontId The font id.
+ *
+ * @return @e true if the font is a color one.
+ */
+ bool IsColorFont(FontId fontId);
+
/**
* @brief Add custom fonts directory
*
return mPlugin->IsColorGlyph(fontId, glyphIndex);
}
+bool FontClient::IsColorFont(FontId fontId)
+{
+ CreatePlugin();
+
+ return mPlugin->IsColorFont(fontId);
+}
+
GlyphIndex FontClient::CreateEmbeddedItem(const TextAbstraction::FontClient::EmbeddedItemDescription& description, Pixel::Format& pixelFormat)
{
CreatePlugin();
*/
bool IsColorGlyph(FontId fontId, GlyphIndex glyphIndex);
+ /**
+ * @copydoc Dali::TextAbstraction::FontClient::IsColorFont()
+ */
+ bool IsColorFont(FontId fontId);
+
/**
* @copydoc Dali::TextAbstraction::FontClient::CreateEmbeddedItem()
*/
return true;
}
+ /**
+ * @copydoc FontCacheItemInterface::IsColorFont()
+ */
+ bool IsColorFont() const override
+ {
+ return true;
+ }
+
/**
* @copydoc FontCacheItemInterface::IsCharacterSupported()
*/
*/
virtual bool IsColorGlyph(GlyphIndex glyphIndex) const = 0;
+ /**
+ * Return true if the font is colored
+ *
+ * @return true if the font is colored
+ */
+ virtual bool IsColorFont() const = 0;
+
/**
* Check if the character is supported by this font
* @param[in] fontConfig A handle to a FontConfig library instance.
return fontCacheItem && fontCacheItem->IsColorGlyph(glyphIndex);
}
+bool FontClient::Plugin::IsColorFont(FontId fontId) const
+{
+ const FontCacheItemInterface* fontCacheItem = GetCachedFontItem(fontId);
+ return fontCacheItem && fontCacheItem->IsColorFont();
+}
+
FT_FaceRec_* FontClient::Plugin::GetFreetypeFace(FontId fontId) const
{
const FontCacheItemInterface* fontCacheItem = GetCachedFontItem(fontId);
*/
bool IsColorGlyph(FontId fontId, GlyphIndex glyphIndex) const;
+ /**
+ * @copydoc Dali::TextAbstraction::FontClient::IsColorFont()
+ */
+ bool IsColorFont(FontId fontId) const;
+
/**
* @copydoc Dali::TextAbstraction::FontClient::CreateEmbeddedItem()
*/
return FT_Err_Ok == error;
}
+bool FontFaceCacheItem::IsColorFont() const
+{
+ return mHasColorTables;
+}
+
/**
* Check if the character is supported by this font
* @param[in] fontConfig A handle to a FontConfig library instance.
*/
bool IsColorGlyph(GlyphIndex glyphIndex) const override;
+ /**
+ * @copydoc FontCacheItemInterface::IsColorFont()
+ */
+ bool IsColorFont() const override;
+
/**
* @copydoc FontCacheItemInterface::IsCharacterSupported()
*/