Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8566181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:35:51+00:00 2026-06-11T17:35:51+00:00

To preface, I am required to use: * ClickOnce deployment * A barcode font

  • 0

To preface, I am required to use:
* ClickOnce deployment
* A barcode font
* A DevExpress control that uses “FontName” with no access to the Font object, preventing me from using PrivateFontCollection.
* The fonts must install silently and work immediately after install.

The portion of DevExpress keeping me from using PFC is the CharacterProperties object in the RichEditControl. Their support site already has a ticket that ends in “sorry, we can’t make it work with PrivateFontCollection”.

I’ve read from numerous sources and keep finding that ClickOnce cannot use a font right away when it installs it. I’m using P/Invoke to install the fonts since PFC is unavailable to me. I created a completely separate console app that does this font install, and the font shows up in Word, but it does not show up in my ClickOnce application even though I opened it after Word. I can install the font manually through the normal Windows click methods and it shows up in both Word and ClickOnce.

I verified with System.Drawing.Font that it is unavailable to the entire application, not just a picky vendor control:

Font fontTester = new Font(fontName, 12, FontStyle.Regular, GraphicsUnit.Pixel);
if (fontTester.Name == fontName)

The “Name” value changes to “Microsoft Sans-Serif”, acting as though the font is unavailable.

How do I get the font to show up in ClickOnce without a reboot/logoff?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T17:35:53+00:00Added an answer on June 11, 2026 at 5:35 pm

    The P/Invoke method in the console app isn’t working and I haven’t the time to figure out why, but using VBScript with Shell.Application does.

    Const FONTS = &H14&
    
    Set objShell = CreateObject("Shell.Application")
    Set objFolder = objShell.Namespace(FONTS)
    objFolder.CopyHere "\\server\Fonts\barcodefont.ttf"
    

    I had actually started with this, but for whatever reason it didn’t work, so I moved onto other methods, including the console app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Preface: I'm know that in most cases using a volatile field won't yield any
Preface: I have a MS Access 2010 front end running against a MySQL back
Preface . I wrote a small application in C that plays a video file
Preface Let me start off by saying that I'm a relatively new programmer and
Preface: I know that there are high quality graph APIs available. I'm interested in
Let me preface this question and state that using Entity Framework is not an
I want to preface this question by stating that I am fairly new to
I will preface this question with the disclaimer that I know there are many
I must preface this by saying that I am a neophyte (learning), so please
I would like to preface this with I'm a complete newb, so keep that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.