mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Get monospace font under Linux (fixes #2062)
This commit is contained in:
parent
7c80c8ab23
commit
1b1ca89bc1
1 changed files with 2 additions and 1 deletions
|
|
@ -621,7 +621,7 @@ begin
|
|||
AFont:= FcFontMatch(nil, APattern, @Res);
|
||||
if Assigned(AFont) then
|
||||
begin
|
||||
AFontName:= FcPatternFormat(AFont, '%{fullname}');
|
||||
AFontName:= FcPatternFormat(AFont, '%{family}');
|
||||
if Assigned(AFontName) then
|
||||
begin
|
||||
Result:= StrPas(AFontName);
|
||||
|
|
@ -641,6 +641,7 @@ initialization
|
|||
if LoadFontConfigLib('libfontconfig.so.1') then
|
||||
begin
|
||||
MonoSpaceFont:= GetFontName(MonoSpaceFont);
|
||||
DebugLn('Monospace: ', MonoSpaceFont);
|
||||
UnLoadFontConfigLib;
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue