« 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 Sequoaia 15.6.1
Lazarus 4.99 (rev main_4_99-2644-gfd63613782) FPC 3.3.1 x86_64-darwin-cocoa
Windows 10 Pro
Lazarus 3.99 (rev cbfd80ce39)