[Bug Fix] Fix FreeType2 source type recognition

OBS appears to be using a new format for the FreeType2 source, so we add the new kinds.

One thing I'm unsure on is if anything still uses the old naming stuff `text_ft2`/`text_ft2_v2`, since if not then we should not check
This commit is contained in:
tt2468 2020-04-27 08:30:39 -07:00 committed by GitHub
parent e277cae799
commit f61bc809dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ bool isTextGDIPlusSource(const QString& sourceKind)
bool isTextFreeType2Source(const QString& sourceKind) bool isTextFreeType2Source(const QString& sourceKind)
{ {
return (sourceKind == "text_ft2" || sourceKind == "text_ft2_v2"); return (sourceKind == "text_ft2" || sourceKind == "text_ft2_v2" || sourceKind == "text_ft2_source" || sourceKind == "text_ft2_source_v2");
} }
/** /**