×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    How to add and use a TTF font

    Hi All,

    I am trying to add a TTF font and use it.

    I added it in my MainPage.xaml file as:
    <TextBlock x:Name="textBlockListTitle" Text="ABC" Style="{StaticResource PhoneTextTitle2Style}" FontFamily="Fonts/Fonts.zip#MyFontsName"/>

    and in the MainPage.xaml UI preview, it shows ABC with my font.

    However, when I try to debug the application, the text ABC appears in system font and not my font...

    What am I missing or doing wrong?
    Amit Kankani
    Nokia Developer Champion

  2. #2
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: How to add and use a TTF font

    Was able to solve the issue, I had missed some of the steps, but this link helped a lot and I was able to see it in emulator too

    http://blog.markarteaga.com/CustomFo...plication.aspx

    Hope it will help someone
    Amit Kankani
    Nokia Developer Champion

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,752

    Re: How to add and use a TTF font

    [Disclaimer for #4: a failed spammer appeared and asked some general nothing]
    Last edited by wizard_hu_; 2011-07-27 at 17:55.

  4. #4
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: How to add and use a TTF font

    hey, it was the first post so lets be a little gentle...

    Hi kurtsmith6991, the idea is not to post info here, for that we have wiki.
    Discussion boards are more for problem solving.
    I was facing a problem and not able to find the solution, so I posted a question.
    However some more minutes of late night work and trying and more searching, I could get it to work, so put back the solution as well... so that any one else facing the issue could search it up before posting a new query...

    But had I known the procedure before had, I would rather look at putting it in wiki articles if not already there.

    Hope you understood,

    cheers,
    Amit Kankani
    Nokia Developer Champion

  5. #5
    Registered User
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,571

    Re: How to add and use a TTF font

    Amit, thanks for taking the time to provide the answer to your own question. If you think that a wiki article would provide a better link than the one you provided then I encourage you to write one - but if the links are more than sufficient then not point just for the sake of it.

  6. #6
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: How to add and use a TTF font

    Quote Originally Posted by hamishwillee View Post
    Amit, thanks for taking the time to provide the answer to your own question. If you think that a wiki article would provide a better link than the one you provided then I encourage you to write one - but if the links are more than sufficient then not point just for the sake of it.
    definitely, if it is a link easily available, then we shouldn't....
    If you see the above link, it comes from a BLOG, further I couldn't find any link which does this job completely and in detail... may be my searching wasn't good enough... and may be other developers, specially new ones will fall into same category...
    I have looked at Forum Nokia wiki and DiBo for last 5 years to give me answers or pointers, else we wouldn't need this forum if Google was enough ...
    Google is a huge sea, and I find FN or now Developer Nokia, a great help to developers for Nokia platforms by providing the related info required for mobile development. Hence, even if it is a link, I would like to either put the link and elaborate on it, or put down the contents to wiki, rather than leave users searching for blogs to find answers...

    cheers,
    Amit Kankani
    Nokia Developer Champion

  7. #7
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: How to add and use a TTF font

    Quote Originally Posted by hamishwillee View Post
    Amit, I think you're saying it is worth writing a wiki article? If so, do you need any help with this?
    thanks, I have it my agenda over the week end... i will put my findings there
    Amit Kankani
    Nokia Developer Champion

Similar Threads

  1. What is the official way to install a custom ttf font on a N8?
    By eweitnau in forum General Development Questions
    Replies: 2
    Last Post: 2010-09-02, 16:15
  2. set TTF font to Ceikedwin in 3rd edition ?
    By naresh99 in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-11-22, 05:34
  3. Replies: 1
    Last Post: 2006-01-25, 12:13
  4. gdr font back to ttf or something editable
    By Blkangel in forum Symbian
    Replies: 2
    Last Post: 2005-04-29, 05:44
  5. ttf font freetype
    By fjgsilva in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-02-16, 12:29

Posting Permissions

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