Kaydet (Commit) 8cca31aa authored tarafından Noel Grandin's avatar Noel Grandin

rename GetTTFontMterics -> GetTTFontMetrics

Change-Id: I9952ddf0b1256e768a664f4da70455245cf67f41
Reviewed-on: https://gerrit.libreoffice.org/41934Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst e2159061
...@@ -447,7 +447,7 @@ namespace vcl ...@@ -447,7 +447,7 @@ namespace vcl
* @ingroup sft * @ingroup sft
* *
*/ */
void GetTTFontMterics(const std::vector<uint8_t>& hhea, void GetTTFontMetrics(const std::vector<uint8_t>& hhea,
const std::vector<uint8_t>& os2, const std::vector<uint8_t>& os2,
TTGlobalFontInfo *info); TTGlobalFontInfo *info);
......
...@@ -416,7 +416,7 @@ void ImplFontMetricData::ImplCalcLineSpacing(const std::vector<uint8_t>& rHheaDa ...@@ -416,7 +416,7 @@ void ImplFontMetricData::ImplCalcLineSpacing(const std::vector<uint8_t>& rHheaDa
vcl::TTGlobalFontInfo rInfo; vcl::TTGlobalFontInfo rInfo;
memset(&rInfo, 0, sizeof(vcl::TTGlobalFontInfo)); memset(&rInfo, 0, sizeof(vcl::TTGlobalFontInfo));
GetTTFontMterics(rHheaData, rOS2Data, &rInfo); GetTTFontMetrics(rHheaData, rOS2Data, &rInfo);
// Try hhea table first. // Try hhea table first.
if (rInfo.ascender || rInfo.descender) if (rInfo.ascender || rInfo.descender)
......
...@@ -2385,7 +2385,7 @@ TTSimpleGlyphMetrics *GetTTSimpleGlyphMetrics(TrueTypeFont *ttf, const sal_uInt1 ...@@ -2385,7 +2385,7 @@ TTSimpleGlyphMetrics *GetTTSimpleGlyphMetrics(TrueTypeFont *ttf, const sal_uInt1
} }
// TODO, clean up table parsing and re-use it elsewhere in this file. // TODO, clean up table parsing and re-use it elsewhere in this file.
void GetTTFontMterics(const std::vector<uint8_t>& hhea, void GetTTFontMetrics(const std::vector<uint8_t>& hhea,
const std::vector<uint8_t>& os2, const std::vector<uint8_t>& os2,
TTGlobalFontInfo *info) TTGlobalFontInfo *info)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment