mirror of https://github.com/buggins/dlangui.git
support multiple font face names delimited by comma in style font face name
This commit is contained in:
parent
9ff1b50721
commit
2739c51393
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue