Skip to content

Commit

Permalink
Bug 910754 - skia-npapi's anp_getFontPath() function doesn't work wit…
Browse files Browse the repository at this point in the history
…h upstream Skia anymore, and it looks like we don't need it to be implemented anyway r=snorp
  • Loading branch information
gw280 committed Dec 6, 2013
1 parent ee3c883 commit c916cd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions other-licenses/skia-npapi/ANPTypeface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,17 @@ static ANPTypefaceStyle anp_getStyle(const ANPTypeface* tf) {
static int32_t anp_getFontPath(const ANPTypeface* tf, char fileName[],
int32_t length, int32_t* index) {
SkStream* stream = tf->openStream(index);

return 0;
/*
if (stream->getFileName()) {
strcpy(fileName, stream->getFileName());
} else {
return 0;
}
return strlen(fileName);
*/
}

static const char* gFontDir;
Expand Down

0 comments on commit c916cd1

Please sign in to comment.