Results 1 to 4 of 4

Thread: Font in Resource file - RESOLVED

  1. #1

    Thread Starter
    Hyperactive Member Colonel Klink's Avatar
    Join Date
    Aug 2002
    Location
    Gold Coast, Australia
    Posts
    329

    Font in Resource file - RESOLVED

    being a web designer, i have paid good money for a bunch of fonts i have, and i want to use one of these fonts in my app.

    however, since i paid for it, i just dont want to install the font onto the system, cause then it can be freely distributed.

    now, when i goto add a font to the resource editor, it puts it under a custom user resource heading, and when i go to access it using LoadResData(101,8) i get a runtime error

    on msdn it has that you can add it especially as a font resource, but in the editor there is no button to add it as a font resource.

    Any ideas on how i can accomplish this?
    Last edited by Colonel Klink; Apr 8th, 2003 at 03:50 PM.
    Our Father, who 0wnz heaven, j00 r0ck!
    May all 0ur base someday be belong to you!
    May j00 0wn earth just like j00 0wn heaven.
    Give us this day our warez, mp3z, and pr0n through a phat pipe.
    And cut us some slack when we act like n00b lamerz, just as we teach n00bz when they act lame on us.
    Please don't give us root access on some poor d00d'z box when we're too pissed off to think about what's right and wrong, and if you could keep the fbi off our backs, we'd appreciate it.
    For j00 0wn r00t on all our b0x3s 4ever and ever, 4m3n.

  2. #2
    Addicted Member
    Join Date
    Mar 2003
    Location
    Minneapolis, MN
    Posts
    151
    According to KB Article ID: Q171731


    Value Description

    1 Cursor resource
    2 Bitmap resource
    3 Icon resource
    4 Menu resource
    5 Dialog box
    6 String resource
    7 Font directory resource
    8 Font resource
    9 Accelerator table
    10 User-defined resource
    12 Group cursor
    14 Group icon

    However, formats 4, 5, 7, 8, 9, and 10 are not supported in Microsoft Visual Basic.

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    You should be carefull when distributing or embedding fonts in your application. You might not be allowed to do so even if you've paid for them.

  4. #4

    Thread Starter
    Hyperactive Member Colonel Klink's Avatar
    Join Date
    Aug 2002
    Location
    Gold Coast, Australia
    Posts
    329
    damn... ok thanks
    Our Father, who 0wnz heaven, j00 r0ck!
    May all 0ur base someday be belong to you!
    May j00 0wn earth just like j00 0wn heaven.
    Give us this day our warez, mp3z, and pr0n through a phat pipe.
    And cut us some slack when we act like n00b lamerz, just as we teach n00bz when they act lame on us.
    Please don't give us root access on some poor d00d'z box when we're too pissed off to think about what's right and wrong, and if you could keep the fbi off our backs, we'd appreciate it.
    For j00 0wn r00t on all our b0x3s 4ever and ever, 4m3n.

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