зеркало из https://github.com/mozilla/moz-skia.git
make sure we pass legal utf8
git-svn-id: http://skia.googlecode.com/svn/trunk@9877 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
929c98d35f
Коммит
2d903aea53
|
@ -75,8 +75,8 @@ public:
|
|||
fName.printf("cmap_%s", name);
|
||||
|
||||
for (int i = 0; i < NGLYPHS; ++i) {
|
||||
// we're just jamming values into utf8, so we must keep it legal
|
||||
fText[i] = 'A' + i;
|
||||
// we're jamming values into utf8, so we must keep it legal utf8
|
||||
fText[i] = 'A' + (i & 31);
|
||||
}
|
||||
fPaint.setTypeface(SkTypeface::RefDefault())->unref();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче