support multiple font face names delimited by comma in style font face name

This commit is contained in:
Vadim Lopatin 2015-01-17 22:04:53 +03:00
parent 9ff1b50721
commit 2739c51393
1 changed files with 5 additions and 2 deletions

View File

@ -362,8 +362,11 @@ class Win32FontManager : FontManager {
FontDef * findFace(string face) {
if (face.length == 0)
return null;
if (face in _faceByName)
return _faceByName[face];
string[] faces = split(face, ",");
foreach(f; faces) {
if (f in _faceByName)
return _faceByName[f];
}
return null;
}