ClickOnce deployment, include font

G

Guest

special fonts are not included in my deployed windows forms application (.net
2.0). How can I include them during installation? I am using ClickOnce and
all I have read is that you need to create a Setup and Deployment package and
install the font to the users windows directory.

Would this mean I can't use ClickOnce deployment?
 
L

Linda Liu [MSFT]

Hi Robin,

Yes, you're right.

ClickOnce does not install fonts. ClickOnce is designed to be a
non-impactful install and installing fonts is considered impactful to a
user's computer.

To install font on client machines, we have to create a Setup and
Deployment package.

Hope this helps.
If you have any converns, please feel free to let me know.


Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

So can you please confirm that if I want to install a font with my
application, I cannot use ClickOnce; instead I must create a Setup and
Deployment project and deploy that way.
 
L

Linda Liu [MSFT]

Hi Robin,

Thank you for your feedback.

I suggest that you create a setup package for the fonts and use ClickOnce
to deploy your application.

When installing your program on a client for the first time, the user may
run the setup package to install the fonts first and then install the
program via ClickOnce.

If your program is updated and has a new version, the user may upgrade the
program via ClickOnce and needn't run the setup package in this case.

Hope this helps.
If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support
 
L

Linda Liu [MSFT]

Hi Robin,

How about the problem now?

If you have any question, please feel free to let us know.

Thank you for using our MSDN Managed Newsgroup Support Service!

(BTW, I will be on a long vacation from the next Monday to Friday. During
my leave, my team mates will follow up with you and it may not in time.
Sorry for the inconvenience it may bring to you!)


Sincerely,
Linda Liu
Microsoft Online Community Support
 
J

Jeffrey Tan[MSFT]

Hi Robin,

Since my colleague Linda is on vacation this week, I will continue to work
with you.

Based on my understanding, you wanted to deploy&install some special fonts
in ClickOnce application.

Yes, normally, ClickOnce application does not support deploying fonts to
the system font directory. However, if you want to implement such function,
you may programmatically copy the font to "C:\windows\fonts" directory and
p/invoke AddFontResourceW GDI API to add this font resource. But this
technology only allows the other applications to use this installed font
resource. Your current ClickOnce application can not use this font unless
you restarted it. A workaround is using PrivateFontCollection.AddFontFile
method to allow this font to be used in the current ClickOnce application.
Please refer to my orginal reply below:
http://groups.google.com/group/microsoft.public.dotnet.framework/msg/347f09c
3283f6b0d

Hope it makes sense to you.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top