OLD | NEW |
1 /* | 1 /* |
2 ******************************************************************************* | 2 ******************************************************************************* |
3 * | 3 * |
4 * Copyright (C) 1999-2014, International Business Machines | 4 * Copyright (C) 1999-2015, International Business Machines |
5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
6 * | 6 * |
7 ******************************************************************************* | 7 ******************************************************************************* |
8 * file name: SimpleFontInstance.cpp | 8 * file name: SimpleFontInstance.cpp |
9 * | 9 * |
10 * created on: 03/30/2006 | 10 * created on: 03/30/2006 |
11 * created by: Eric R. Mader | 11 * created by: Eric R. Mader |
12 */ | 12 */ |
13 | 13 |
14 #include "unicode/utypes.h" | 14 #include "unicode/utypes.h" |
(...skipping 19 matching lines...) Expand all Loading... |
34 fDescent = (le_int32) yUnitsToPoints(600.0); | 34 fDescent = (le_int32) yUnitsToPoints(600.0); |
35 | 35 |
36 return; | 36 return; |
37 } | 37 } |
38 | 38 |
39 SimpleFontInstance::~SimpleFontInstance() | 39 SimpleFontInstance::~SimpleFontInstance() |
40 { | 40 { |
41 // nothing to do... | 41 // nothing to do... |
42 } | 42 } |
43 | 43 |
44 const void *SimpleFontInstance::getFontTable(LETag tableTag) const | 44 const void *SimpleFontInstance::getFontTable(LETag tableTag, size_t &length) con
st |
45 { | 45 { |
| 46 length = -1; // unknown for this test. |
46 #ifndef USING_ICULEHB | 47 #ifndef USING_ICULEHB |
47 if (tableTag == LE_GSUB_TABLE_TAG) { | 48 if (tableTag == LE_GSUB_TABLE_TAG) { |
48 return CanonShaping::glyphSubstitutionTable; | 49 return CanonShaping::glyphSubstitutionTable; |
49 } | 50 } |
50 | 51 |
51 if (tableTag == LE_GDEF_TABLE_TAG) { | 52 if (tableTag == LE_GDEF_TABLE_TAG) { |
52 return CanonShaping::glyphDefinitionTable; | 53 return CanonShaping::glyphDefinitionTable; |
53 } | 54 } |
54 #endif | 55 #endif |
55 return NULL; | 56 return NULL; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 float SimpleFontInstance::getScaleFactorY() const | 129 float SimpleFontInstance::getScaleFactorY() const |
129 { | 130 { |
130 return 1.0; | 131 return 1.0; |
131 } | 132 } |
132 | 133 |
133 le_bool SimpleFontInstance::getGlyphPoint(LEGlyphID /*glyph*/, le_int32 /*pointN
umber*/, LEPoint &/*point*/) const | 134 le_bool SimpleFontInstance::getGlyphPoint(LEGlyphID /*glyph*/, le_int32 /*pointN
umber*/, LEPoint &/*point*/) const |
134 { | 135 { |
135 return FALSE; | 136 return FALSE; |
136 } | 137 } |
137 | 138 |
OLD | NEW |