}
}
- Length Shape(TextAbstraction::FontClient& fontClient, unsigned int const* text, unsigned int numChars, unsigned int fontId, Script script, Property::Map* variationsMapPtr)
+ Length Shape(TextAbstraction::FontClient& fontClient, unsigned int const* text, unsigned int numChars, unsigned int fontId, Script script)
{
mText = new unsigned char[numChars];
mNumChars = numChars;
GetImplementation(*this).GetGlyphs(glyphStore, mappingTable);
}
-Length Shaping::Shape(TextAbstraction::FontClient& fontClient, unsigned int const* text, unsigned int numChars, unsigned int fontId, Script script, Property::Map* variationsMapPtr)
+Length Shaping::Shape(TextAbstraction::FontClient& fontClient, unsigned int const* text, unsigned int numChars, unsigned int fontId, Script script)
{
- return GetImplementation(*this).Shape(fontClient, text, numChars, fontId, script, variationsMapPtr);
+ return GetImplementation(*this).Shape(fontClient, text, numChars, fontId, script);
}
} // namespace TextAbstraction
glyphs,
glyphsToCharactersMap,
charactersPerGlyph,
- newParagraphGlyphs,
- variationsMapPtr);
+ newParagraphGlyphs);
// Create the 'number of glyphs' per character and the glyph to character conversion tables.
mTextModel->mVisualModel->CreateGlyphsPerCharacterTable(0u, 0u, numberOfCharacters);
TextAbstraction::Shaping shaping = TextAbstraction::Shaping::Get();
- Property::Map *variationsMapPtr = nullptr;
- if(!impl.mModel->mLogicalModel->mVariationsMap.Empty())
- {
- variationsMapPtr = &impl.mModel->mLogicalModel->mVariationsMap;
- }
-
// Shapes the text.
ShapeText(shaping,
impl.mFontClient,
glyphs,
glyphsToCharactersMap,
charactersPerGlyph,
- newParagraphGlyphs,
- variationsMapPtr);
+ newParagraphGlyphs);
// Create the 'number of glyphs' per character and the glyph to character conversion tables.
impl.mModel->mVisualModel->CreateGlyphsPerCharacterTable(startIndex, impl.mTextUpdateInfo.mStartGlyphIndex, requestedNumberOfCharacters);
Vector<GlyphInfo>& glyphs,
Vector<CharacterIndex>& glyphToCharacterMap,
Vector<Length>& charactersPerGlyph,
- Vector<GlyphIndex>& newParagraphGlyphs,
- Property::Map* variationsMapPtr)
+ Vector<GlyphIndex>& newParagraphGlyphs)
{
if(0u == numberOfCharacters)
{
textBuffer + previousIndex,
(currentIndex - previousIndex), // The number of characters to shape.
currentFontId,
- currentScript,
- variationsMapPtr);
+ currentScript);
#if defined(TRACE_ENABLED)
if(logEnabled)
* @param[out] glyphToCharacterMap Vector containing the first character in the logical model that each glyph relates to.
* @param[out] charactersPerGlyph Vector containing the number of characters per glyph.
* @param[out] newParagraphGlyphs Vector containing the indices to the new paragraph glyphs.
- * @param[in] variationsMapPtr The variations used in variable fonts.
*/
void ShapeText(TextAbstraction::Shaping& shaping,
TextAbstraction::FontClient& fontClient,
Vector<GlyphInfo>& glyphs,
Vector<CharacterIndex>& glyphToCharacterMap,
Vector<Length>& charactersPerGlyph,
- Vector<GlyphIndex>& newParagraphGlyphs,
- Property::Map* variationsMapPtr = nullptr);
+ Vector<GlyphIndex>& newParagraphGlyphs);
} // namespace Text