| | 11 | ReaderWriterFreeType() |
|---|
| | 12 | { |
|---|
| | 13 | supportsExtension("ttf","true type font format"); |
|---|
| | 14 | supportsExtension("ttc","true type format"); |
|---|
| | 15 | supportsExtension("pfb","type1 binary format"); |
|---|
| | 16 | supportsExtension("pfa","type2 ascii format"); |
|---|
| | 17 | supportsExtension("cid","Postscript CID-Fonts format"); |
|---|
| | 18 | supportsExtension("cff","OpenType format"); |
|---|
| | 19 | supportsExtension("cef","OpenType format"); |
|---|
| | 20 | supportsExtension("fon","Windows bitmap fonts format"); |
|---|
| | 21 | supportsExtension("fnt","Windows bitmap fonts format"); |
|---|
| | 22 | |
|---|
| | 23 | supportsOption("monochrome","Select monochrome font."); |
|---|
| | 24 | } |
|---|
| | 25 | |
|---|
| 13 | | virtual bool acceptsExtension(const std::string& extension) const |
|---|
| 14 | | { |
|---|
| 15 | | return osgDB::equalCaseInsensitive(extension,"ttf") || // true type |
|---|
| 16 | | osgDB::equalCaseInsensitive(extension,"ttc") || // true type |
|---|
| 17 | | osgDB::equalCaseInsensitive(extension,"pfb") || // type1 binary |
|---|
| 18 | | osgDB::equalCaseInsensitive(extension,"pfa") || // type2 ascii |
|---|
| 19 | | osgDB::equalCaseInsensitive(extension,"cid") || // Postscript CID-Fonts |
|---|
| 20 | | osgDB::equalCaseInsensitive(extension,"cff") || // OpenType |
|---|
| 21 | | osgDB::equalCaseInsensitive(extension,"cef") || // OpenType |
|---|
| 22 | | osgDB::equalCaseInsensitive(extension,"fon") || // Windows bitmap fonts |
|---|
| 23 | | osgDB::equalCaseInsensitive(extension,"fnt"); // Windows bitmap fonts |
|---|
| 24 | | } |
|---|
| 25 | | |
|---|