微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > GMS环境下获取泰文版Google法律信息异常

GMS环境下获取泰文版Google法律信息异常

时间:10-02 整理:3721RD 点击:
[DESCRIPTION]
GMS环境下,成功连接wifi,进入设置 -> 关于手机 -> 法律信息 -> Google法律信息 -> 选择泰文,直接退出Google法律信息界面,返回到法律信息界面(选择其他语言都可以成功show出Google法律信息)。
[SOLUTION]
请修改code,修改部分如下 ( //mtk change start 和 //mtk change end 包含的区间):
File:
external/webkit/Source/WebCore/platform/graphics/android/FontAndroid.cpp
Function: TextRunWalker::TextRunWalker
TextRunWalker::TextRunWalker(const TextRun& run, unsigned startingX, const
Font* font)
: m_font(font)
, m_startingX(startingX)
, m_offsetX(m_startingX)
, m_run(getNormalizedTextRun(run, m_normalizedRun, m_normalizedBuffer))
, m_iterateBackwards(m_run.rtl())
, m_worDSPacingAdjustment(0)
, m_padding(0)
, m_padPerWordBreak(0)
, m_padError(0)
, m_letterSpacing(0)
{
// Do not use |run| inside this constructor. Use |m_run| instead.
mEMSet(&m_item, 0, sizeof(m_item));
// We cannot know, ahead of time, how many glyphs a given script run
// will produce. We take a guess that script runs will not produce more
// than twice as many glyphs as there are code points plus a bit of
// padding and fallback if we find that we are wrong.
createGlyphArrays((m_run.length() + 2) * 2);
//mtk change start
m_item.log_clusters = new unsigned short[(m_run.length() + 2) * 2];
//mtk change end
m_item.face = 0;
m_item.font = allocHarfbuzzFont();
m_item.item.bidiLevel = m_run.rtl();
m_item.string = m_run.characters();
m_item.stringLength = m_run.length();
reset();
}

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top