Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User RRM's Avatar
    Join Date
    Mar 2013
    Posts
    5
    Hi,

    I want Malayalam fonts in my web apps application for s40 .
    Is it possible to install custom fonts on S40 phones? If it is possible, can I have some pointers to do this in s40 web apps?

    Thanks!
    Last edited by RRM; 2013-03-22 at 06:05.

  2. #2
    Nokia Developer Champion james1980's Avatar
    Join Date
    Sep 2007
    Location
    Bhavnagar
    Posts
    916
    Hi RRM,
    Check this Thread. Similar discussion for javaME is there that might be useful for you.
    Last edited by james1980; 2013-03-22 at 06:23.
    Jajal Mehul

  3. #3
    Nokia Developer Moderator croozeus's Avatar
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,635
    Quote Originally Posted by RRM View Post
    Hi,

    I want Malayalam fonts in my web apps application for s40 .
    Is it possible to install custom fonts on S40 phones? If it is possible, can I have some pointers to do this in s40 web apps?

    Thanks!

    The Nokia font is the only one available for use in web apps as of now: Additional fonts cannot be downloaded.
    The font does, however, offer several point sizes and text effects such as bold and italic.

    Do you have an issue with rendering malayalam with Nokia font?
    Pankaj Nathani
    www.croozeus.com

  4. #4
    Registered User RRM's Avatar
    Join Date
    Mar 2013
    Posts
    5
    Hi,
    I have download NokiaKokia.ttf font. Then
    How to integrate NokiaKokia.ttf fonts in my application s40 web apps.

    Thanks & Regards

  5. #5
    Nokia Developer Moderator croozeus's Avatar
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,635
    Quote Originally Posted by RRM View Post
    Hi,
    I have download NokiaKokia.ttf font. Then
    How to integrate NokiaKokia.ttf fonts in my application s40 web apps.

    Thanks & Regards
    You can't use them, the S40 Web App platform doesn't support using other font yet.
    Pankaj Nathani
    www.croozeus.com

  6. #6
    Registered User RRM's Avatar
    Join Date
    Mar 2013
    Posts
    5
    Hi croozeus ,

    Thanks you for your reply

  7. #7
    Registered User RRM's Avatar
    Join Date
    Mar 2013
    Posts
    5
    Hi,

    I tried following code to set malayalam font. Its is working in Nokia web app Simulator, but not in device. Can u explain reason?

    My code is

    Css file

    @charset "utf-8";

    .ui-label_S40label {
    color: white;
    font-size: small;
    font-family: Manorama;
    background-color: #B5B5B5;
    padding: 8px;
    background-image: url(../images/title-bar.png);
    overflow: hidden;
    }
    #ss
    {
    font-family:Manorama;
    }
    @font-face
    {
    font-family: Manorama;
    src: url(../../font/Manorama.ttf)format('truetype');
    font-weight: normal;
    font-style: normal;
    }

    Html file

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>TestApp</title>
    <link href="s40-theme/css/s40-theme.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="s40-theme/js/screensize.js"></script>
    <script type="text/javascript">
    function refreshPageContent() {
    // Add code for refreshing te page here...
    }
    </script>
    <link rel="stylesheet" type="text/css" href="s40-theme/css/s40-theme_text_field.css" />
    <link rel="stylesheet" type="text/css" href="s40-theme/css/s40-theme_labeled_title.css" />

    </head>

    <body>
    <div class="ui-page">
    <!-- header -->
    <div class="ui-header">
    <div class="ui-title inline"><h2>TestApp</h2></div><div class="refresh-icon inline"><a onclick="refreshPageContent();"></a><img alt="icon" src="s40-theme/images/refresh_40x40.png" /></div>
    </div>
    <div class="ui-content">
    <!-- label -->
    <div class="font-face" id="ss">ùÏßWÉÞÄÏíAí çÕIß Éâ ÈàAßÕÏíAÞÈßæˆKá ÎdLß ¦øcÞ¿X ÎáÙNÆí. §çMÞÝæJ... </div>
    </div>

    </div>
    </body>
    </html>

  8. #8
    Nokia Developer Moderator petrib's Avatar
    Join Date
    Mar 2003
    Posts
    9,412
    Quote Originally Posted by RRM View Post
    I tried following code to set malayalam font. Its is working in Nokia web app Simulator, but not in device. Can u explain reason?
    Just a guess: The're different implementations. I.e., the simulator is an "approximator", not the same code with the same behaviour.

    As mentioned above: "S40 Web App platform doesn't support using other font yet. " (And "yet" might also mean "never", but only Nokia knows for sure.)

    Also, use the CODE tags, when you post code. It'll preserve formatting/intendation and keep the code readable

  9. #9
    Nokia Developer Moderator croozeus's Avatar
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,635
    Exactly what Petrib said - unfortunately, the simulator is a (webkit based) different implementation from the actual Nokia Xpress browser you have on the phone. There are many things that work on the simulator which are not supported (and mentioned to be not supported in the documentation) by the S40 Web App platform.

    Again, custom font is not supported in S40 Web Apps. If you feel it is a really important feature - you can raise a feature request here.
    Pankaj Nathani
    www.croozeus.com

Similar Threads

  1. Installing Custom Font on S40
    By RS3 in forum Mobile Java General
    Replies: 3
    Last Post: 2012-05-18, 07:36
  2. Custom font
    By Gustavo Ferreira in forum Mobile Java General
    Replies: 2
    Last Post: 2010-11-18, 12:18
  3. custom font for my app changes all applications font
    By rafeeqpv in forum Symbian C++
    Replies: 0
    Last Post: 2007-08-08, 15:37
  4. Replies: 3
    Last Post: 2005-01-13, 02:53
  5. custom font
    By tolnaisz in forum Symbian C++
    Replies: 0
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved