/*
*******************************************************************************
*
- * Copyright (C) 1999-2006, International Business Machines
+ * Copyright (C) 1999-2015, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
#include "layout/LETypes.h"
#include "layout/LEFontInstance.h"
+#ifndef USING_ICULEHB
#include "CanonShaping.h"
+#endif
+
#include "SimpleFontInstance.h"
SimpleFontInstance::SimpleFontInstance(float pointSize, LEErrorCode &status)
// 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;
}
if (tableTag == LE_GDEF_TABLE_TAG) {
return CanonShaping::glyphDefinitionTable;
}
-
+#endif
return NULL;
}
advance.fX = 0;
}
#else
+ (void)glyph; // Suppress unused parameter compiler warning.
advance.fX = xUnitsToPoints(2048);
#endif