Added some formats (.fon, .otf and .ttc) support to FreeType loader
Former-commit-id: ff5d9f9522c920976929603f25d056ed68e6d971
This commit is contained in:
parent
bdaa4f2838
commit
e85c6afa12
|
|
@ -311,7 +311,7 @@ namespace
|
||||||
{
|
{
|
||||||
///FIXME: Je suppose qu'il en manque quelques unes..
|
///FIXME: Je suppose qu'il en manque quelques unes..
|
||||||
static std::set<NzString> supportedExtensions = {
|
static std::set<NzString> supportedExtensions = {
|
||||||
"afm", "bdf", "cff", "cid", "dfont", "fnt", "pfa", "pfb", "pfm", "pfr", "sfnt", "tte", "ttf"
|
"afm", "bdf", "cff", "cid", "dfont", "fnt", "fon", "otf", "pfa", "pfb", "pfm", "pfr", "sfnt", "ttc", "tte", "ttf"
|
||||||
};
|
};
|
||||||
|
|
||||||
return supportedExtensions.find(extension) != supportedExtensions.end();
|
return supportedExtensions.find(extension) != supportedExtensions.end();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue