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

  • Home
  • SEARCH
  • 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 8928111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:21:44+00:00 2026-06-15T08:21:44+00:00

I’m creating a WPF application and trying to match the style of the user

  • 0

I’m creating a WPF application and trying to match the style of the user interface to an existing web site. The site is using Lato as its default font, which is not available by default on Windows. I’d like to use Lato, but I can’t require users to install the font. Is there any way to get WPF to use the font definition that is available through the Google Web Font service, or otherwise set this up so that a manual install of the font is not necessary?

  • 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-15T08:21:45+00:00Added an answer on June 15, 2026 at 8:21 am

    Sure you can, the easy way is as a font resource you compile into your application:

    First, download the TTF from google web fonts. From your example link find the link “Open Lato in Google Web Fonts” at the bottom of the page. This adds the font to your “collection”. In the resulting page, up near the top is a smaller link titled “Download Your Collection” which will provide you with the the TTF font files in a zip file.

    Next, embed the fonts as a resource in your WPF application. Add the files to your project, and make sure you select “Resource” for the compile action. Then, you can use your font in XAML simply by changing the FontFamily property to the resource name rather than the font name: <TextBlock FontFamily="/Resources/#Lato">Lato Text Here</TextBlock>. See the MSDN article on embedding fonts for more information.

    You could also download the font on demand in code by setting the FontFamily property of whatever element or container you want to a new FontFamily object – use the constructor that takes a URI and use the URI of the TTF. I don’t believe you can use the Google urls to do this directly, as the Google API assumes web page access and provides script and/or CSS as well as a font. Also note that this may require some additional permissions from what your app already demands.

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm trying to select an H1 element which is the second-child in its group
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am reading a book about Javascript and jQuery and using one of the
I am trying to understand how to use SyndicationItem to display feed which is
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

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.