X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/57a6839dcb3bba09e8228b822b290604668416fe..ef6cf650f4a75c3f97de06b51fa104f2069b9ea2:/icuSources/test/letest/SimpleFontInstance.cpp diff --git a/icuSources/test/letest/SimpleFontInstance.cpp b/icuSources/test/letest/SimpleFontInstance.cpp index 8051bf5c..d4bba3d9 100644 --- a/icuSources/test/letest/SimpleFontInstance.cpp +++ b/icuSources/test/letest/SimpleFontInstance.cpp @@ -1,7 +1,7 @@ /* ******************************************************************************* * - * Copyright (C) 1999-2013, International Business Machines + * Copyright (C) 1999-2015, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -17,7 +17,10 @@ #include "layout/LETypes.h" #include "layout/LEFontInstance.h" +#ifndef USING_ICULEHB #include "CanonShaping.h" +#endif + #include "SimpleFontInstance.h" SimpleFontInstance::SimpleFontInstance(float pointSize, LEErrorCode &status) @@ -38,8 +41,10 @@ SimpleFontInstance::~SimpleFontInstance() // nothing to do... } -const void *SimpleFontInstance::getFontTable(LETag tableTag) const +const void *SimpleFontInstance::getFontTable(LETag tableTag, size_t &length) const { + length = -1; // unknown for this test. +#ifndef USING_ICULEHB if (tableTag == LE_GSUB_TABLE_TAG) { return CanonShaping::glyphSubstitutionTable; } @@ -47,7 +52,7 @@ const void *SimpleFontInstance::getFontTable(LETag tableTag) const if (tableTag == LE_GDEF_TABLE_TAG) { return CanonShaping::glyphDefinitionTable; } - +#endif return NULL; } @@ -60,6 +65,7 @@ void SimpleFontInstance::getGlyphAdvance(LEGlyphID glyph, LEPoint &advance) cons advance.fX = 0; } #else + (void)glyph; // Suppress unused parameter compiler warning. advance.fX = xUnitsToPoints(2048); #endif