« on: November 11, 2024, 11:58:11 am »
With this function I check if a font is installed on a system.
function FontIsAvailable(const FontName: string): Boolean;
begin
Result := Screen.Fonts.IndexOf(FontName) >= 0;
end;
How can I install a font if it is not on the system through code?
« Last Edit: November 13, 2024, 10:44:37 pm by madref »
Logged
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.
Main Platform:
--------------
Mac OS X Sonoma 14.7
Lazarus 3.99 (Lazarus 3.99 (rev main_3_99-2668-g6b352d830e) FPC 3.3.1 x86_64-darwin-cocoa)
Windows 10 Pro
Lazarus 3.99 (rev cbfd80ce39)