Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2007

Tip: Looking for answers? Try searching our database.

ClickOnce deployment, include font

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robin - 08 Feb 2007 23:30 GMT
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?
Linda Liu [MSFT] - 09 Feb 2007 04:03 GMT
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.
Robin - 14 Feb 2007 17:02 GMT
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.

> Hi Robin,
>
[quoted text clipped - 33 lines]
>  
> This posting is provided "AS IS" with no warranties, and confers no rights.
Linda Liu [MSFT] - 15 Feb 2007 03:46 GMT
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
Linda Liu [MSFT] - 16 Feb 2007 11:11 GMT
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
Jeffrey Tan[MSFT] - 20 Feb 2007 05:38 GMT
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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.