diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-03-15 09:13:20 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-03-15 09:13:20 +0000 |
commit | 9b92252d80eba01cd25cc9610ad64908af57ba08 (patch) | |
tree | 6b30c240226b3187d7fbf2f098cfc64b8a3fbd7a /Build/source/libs/graphite2/graphite2-src/src/GlyphFace.cpp | |
parent | a47ea6ff25589ac48846a0df205a7a037fe5c5bd (diff) |
graphite2 1.3.7
git-svn-id: svn://tug.org/texlive/trunk@40028 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/graphite2/graphite2-src/src/GlyphFace.cpp')
-rw-r--r-- | Build/source/libs/graphite2/graphite2-src/src/GlyphFace.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Build/source/libs/graphite2/graphite2-src/src/GlyphFace.cpp b/Build/source/libs/graphite2/graphite2-src/src/GlyphFace.cpp index 9fc11b2157e..ce17e42bd47 100644 --- a/Build/source/libs/graphite2/graphite2-src/src/GlyphFace.cpp +++ b/Build/source/libs/graphite2/graphite2-src/src/GlyphFace.cpp @@ -29,20 +29,20 @@ of the License or (at your option) any later version. using namespace graphite2; -uint16 GlyphFace::getMetric(uint8 metric) const +int32 GlyphFace::getMetric(uint8 metric) const { switch (metrics(metric)) { - case kgmetLsb : return static_cast<uint16>(m_bbox.bl.x); - case kgmetRsb : return static_cast<uint16>(m_advance.x - m_bbox.tr.x); - case kgmetBbTop : return static_cast<uint16>(m_bbox.tr.y); - case kgmetBbBottom : return static_cast<uint16>(m_bbox.bl.y); - case kgmetBbLeft : return static_cast<uint16>(m_bbox.bl.x); - case kgmetBbRight : return static_cast<uint16>(m_bbox.tr.x); - case kgmetBbHeight : return static_cast<uint16>(m_bbox.tr.y - m_bbox.bl.y); - case kgmetBbWidth : return static_cast<uint16>(m_bbox.tr.x - m_bbox.bl.x); - case kgmetAdvWidth : return static_cast<uint16>(m_advance.x); - case kgmetAdvHeight : return static_cast<uint16>(m_advance.y); + case kgmetLsb : return m_bbox.bl.x; + case kgmetRsb : return m_advance.x - m_bbox.tr.x; + case kgmetBbTop : return m_bbox.tr.y; + case kgmetBbBottom : return m_bbox.bl.y; + case kgmetBbLeft : return m_bbox.bl.x; + case kgmetBbRight : return m_bbox.tr.x; + case kgmetBbHeight : return m_bbox.tr.y - m_bbox.bl.y; + case kgmetBbWidth : return m_bbox.tr.x - m_bbox.bl.x; + case kgmetAdvWidth : return m_advance.x; + case kgmetAdvHeight : return m_advance.y; default : return 0; } } |