Results 1 to 8 of 8
  1. #1
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to distribute a font (VB6 sp5)

    Once again the Windows API can help. Use EnumFonts to determine if the font is installed. If not, use AddFontResource to add it to the PCs font "bank". If you want the font removed when you are done with it use RemoveFontResource. I know you know about the AllAPI site to get the syntax and example code. http://www.allapi.net
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  2. #2
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Cornwall, England
    Posts
    393
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to distribute a font (VB6 sp5)

    With you so far but, how do i get the package and deployment wizard to include the .ttf file in the cab file for deployment via CD ?

    If i can get this step done then actually getting the font recognised by the PC should be moderately simple, thanks for the pointer to the API, i was not aware of this and was going to try a different approach.

  3. #3
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to distribute a font (VB6 sp5)

    What install program are you using? InstallShield? That and the others allow simple file copy from the cab or exe to disk. If you are manually writing your own installation "script" ... oh I see, you are using the MS deployment wiz. Ok, you've got me there. Never used it.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: How to distribute a font (VB6 sp5)

    After you choose the path for the package, you should get an "Included Files" dialog page with an Add... button. I didn't try it all the way to the end to see how you would get this file out of your application folder, but maybe that's good enough? (Oh, I am using the wizard as it shipped with Office Developer 2000.)

  5. #5
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Cornwall, England
    Posts
    393
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to distribute a font (VB6 sp5)

    I have got to the "Included Files" dialog and have clicked the Add button. navigating to the fonts folder on my machine and then double clicking on the required font just opens the font in the same way that it does if you d click it in Explorer. just clicking once does not put the font file in the open file name box so the open button is never activated.

    i am thinking that i will have to manually copy the font onto the distribution cd and then get the program to install the font when it is first run.

    it seems a bit short sighted for Visual Studio not to have the ability to include fonts in a software package though !?

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: How to distribute a font (VB6 sp5)

    Maybe that folder is protected and adding from somewhere else will solve it? I can't believe MS would rule out .ttf files completely.

  7. #7
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Cornwall, England
    Posts
    393
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to distribute a font (VB6 sp5)

    Thank You <img src=/S/clapping.gif border=0 alt=clapping width=19 height=23>

    Moving it out of the Fonts folder did the trick, it also auto assigns it to the $(fonts) locations when you get to choose where to install the included files

  8. #8
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Cornwall, England
    Posts
    393
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to distribute a font (VB6 sp5)

    Hi,
    I am writing an application to be distributed throughout my company and it has been specified that it should use a particular font on certain labels. I know for sure that this font wont be installed on the client PCs and i am wondering how to deploy it ?

    I have tried selecting the file as one to include in the package and deployment wizard but this opens the font when i double click or ignores it totally if i try to just say OK. I understand that you can force a file into the fonts folder by using $(font) as the destination path but this doesnt help if the font isnt in the list of packaged files !!

    TIA

Posting Permissions

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