Thread: How to install TrueType font .ttf

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    3

    How to install TrueType font .ttf

    Hi everyone!
    I'd like to install some .ttf font under windows.
    Could anyone give me a piece of code that does the thing or does anybody know any tutorials on how to do it properly?

    Thanks in advance.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Never tried, but how about AddFontResourceEx()

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    70
    I have tried with AddFontResourceEx(). It also adds font entry in to the system. I mean I was able to see new installed fonts in to the font list appear in MS Word or Wordpad. But when i wrote with this new fonts characters were not matched with this font.

    So I think still something is missing........I am trying for that.
    Chintan R Naik

  4. #4
    Registered User
    Join Date
    Jun 2003
    Posts
    3
    Thanks.
    I've already solved this using CopyFile() to copy font file to
    %windir%/fonts.
    And AddFontResource() is used for temporary installations only....

  5. #5
    Registered User
    Join Date
    Jun 2003
    Posts
    70

    ----------------------------------------------------------------------------
    I've already solved this using CopyFile() to copy font file to
    %windir%/fonts.
    ----------------------------------------------------------------------------


    Hey....Only copy font file to %windir% is enough to install font ?
    Chintan R Naik

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. TrueType Font using C
    By ubdullah786 in forum C Programming
    Replies: 3
    Last Post: 01-20-2009, 03:19 AM
  2. problem with my font manager
    By hannibar in forum C Programming
    Replies: 1
    Last Post: 03-07-2006, 08:03 AM
  3. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM
  4. How to install font programattically ?
    By cr_naik in forum Windows Programming
    Replies: 0
    Last Post: 06-27-2003, 03:20 AM
  5. How I can use the windows font files with (.ttf) extension?
    By hadizadeh in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 12-18-2001, 06:01 AM