1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Donation with Paypal!!!

    Go to your paypal account and send directly donation to [email protected]

    1 month - 10 $ - Standart VIP

    6 months - 20 $- Standart VIP

    1 year - 30 $- Standart VIP

    2 years - 50 $- Standart VIP

    Gold member for life - 150 $- Standart VIP

    High Vip (Standart VIP include) group please send PM or email to [email protected] for info

    After Donation please send email to [email protected]

  3. Donation Ways 2020


    Paysend
  4. Telegram
Dismiss Notice

Donation with Paypal!!!

Go to your paypal account and send directly donation to [email protected]

1 month - 10 $ - Standart VIP

6 months - 20 $- Standart VIP

1 year - 30 $- Standart VIP

2 years - 50 $- Standart VIP

Gold member for life - 150 $- Standart VIP

High Vip (Standart VIP include) group please send PM or email to [email protected] for info

After Donation please send email to [email protected]

Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

Font

Discussion in 'Delphi Programming' started by saedi_mehdi, Dec 2, 2013.

  1. saedi_mehdi
    Offline

    saedi_mehdi DF Junior

    Add or remove font from windows

    function FontAdd(const FontFilename: String): Boolean;
    begin
      result:= (AddFontResource(PChar(ExtractFilePath(ParamStr(0) + FontFilename)))<>0);
      SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0);
    end;

    function FontRemove(const FontFilename: String): Boolean;
    begin
      result:= RemoveFontResource(PChar(ExtractFilePath(ParamStr(0) + FontFilename)));
      SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0);
    end;
     
    paramithas likes this.
  2. nnlscxlm
    Offline

    nnlscxlm DF Member

    If you want to avoid saving the font file on the hard disk (for example if you link your font into your executable and want to load it from memory without saving to a file) you can use AddFontMemResourceEx: msdn.microsoft.com/en-us/library/dd183325%28VS.85%29.aspx
     

Share This Page