mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 20:18:11 +02:00
Examples/fontenum: Handle cocoa in the EnumFamilyFonts function.
This commit is contained in:
parent
4f3fe4bcd2
commit
f6554ced9b
@ -120,7 +120,7 @@ begin
|
||||
if LStyles.IndexOf(s)<0 then begin
|
||||
// encode bold (bit 0), italic (bit 1) -- see SelectFont
|
||||
n := 0;
|
||||
{$IFDEF LCLWin32}
|
||||
{$IF DEFINED(LCLWin32) or DEFINED(LCLCocoa) }
|
||||
if (eLogFont.elfLogFont.lfItalic <> 0) then
|
||||
n := n or 1;
|
||||
if (eLogFont.elfLogFont.lfWeight > FW_MEDIUM) then
|
||||
|
Loading…
Reference in New Issue
Block a user