зеркало из https://github.com/mozilla/moz-skia.git
implement CreateTypefaceFromFile
git-svn-id: http://skia.googlecode.com/svn/trunk@7869 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
098b7ff264
Коммит
8d33a24cfe
|
@ -187,8 +187,14 @@ SkTypeface* SkFontHost::CreateTypefaceFromStream(SkStream* stream) {
|
|||
}
|
||||
|
||||
SkTypeface* SkFontHost::CreateTypefaceFromFile(const char path[]) {
|
||||
SkASSERT(!"SkFontHost::CreateTypefaceFromFile unimplemented");
|
||||
return NULL;
|
||||
SkTypeface* face = NULL;
|
||||
SkFILEStream* stream = SkNEW_ARGS(SkFILEStream, (path));
|
||||
|
||||
if (stream->isValid()) {
|
||||
face = CreateTypefaceFromStream(stream);
|
||||
}
|
||||
stream->unref();
|
||||
return face;
|
||||
}
|
||||
|
||||
uint32_t SkFontHost::NextLogicalFont(SkFontID curr, SkFontID orig) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче