Results 1 to 2 of 2

Thread: Chat Font

  1. #1

    Thread Starter
    Hyperactive Member Arachnid13's Avatar
    Join Date
    Jan 2003
    Location
    England
    Posts
    327

    Chat Font

    I'm creating a chat program and each user can choose their own font, at the moment what happens if you're talking to someone who is using a font that you dont have is that the chat window just shows a standard system font instead, but what i want is for the font to be sent over the connection and for it to be automatically installed on the computer that doesn't have it. so how can you access installed font files in vb6 and how would you install one?
    Do you wake up in the morning feeling sleepy and grumpy? Then you must be Snow White

  2. #2
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    Re: Chat Font

    All of windows, or at least the installed fonts, are located C:\windows\fonts. Im assuming you'r using winsock, you send "FONT" first or something so the other person's client knows its a font comming. Then what you could do is do the file chunck dance to send it to the other person. And when the other person gets the file, it could be copying to their C:\windows\fonts. <-- Although, I havn't tested it, thats how I would do it. Or transfer it to a dummy folder first so windows doesn't know the different then copy it over to the C:\windows\fonts.

    Oh, hey look at what a google search turned up....
    [VB6] Registering Fonts Through VB
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width