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) {
|
FontDef * findFace(string face) {
|
||||||
if (face.length == 0)
|
if (face.length == 0)
|
||||||
return null;
|
return null;
|
||||||
if (face in _faceByName)
|
string[] faces = split(face, ",");
|
||||||
return _faceByName[face];
|
foreach(f; faces) {
|
||||||
|
if (f in _faceByName)
|
||||||
|
return _faceByName[f];
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue