Font change does not work?

Hello

I would like to reduce the size of my font and use a specific family. But I looked everywhere and everyone uses the same method. So I try, but the only change that occurs is the color, but not the size etc.

It's what I use atm.

_HHistoryManager.add(new RichTextField("Some text"){                                               public void paint(Graphics graphics) {                                                  graphics.setColor(Color.WHITE);
                                            font = fontFamily[choiceField.getSelectedIndex()].getFont
                                            (FontFamily.SCALABLE_FONT,10);
                                            graphics.setFont(font);
                                            super.paint(graphics);}});

Thanks in advance

Thanks for the reply dude. After 2 hours of research I use it and it works:

try{
                                                graphics.setColor(Color.WHITE);
                                                FontFamily fFam = FontFamily.forName("New Times Roman");
                                                      Font font = fFam.getFont(Font.BOLD, 12);
                                                setFont(font);
                                                super.paint(graphics);
}
                                            catch (Exception e)
{  System.out.print(e.toString()); }

Looks like that the police just needs to be defined before you paint. No need to 'Paint' the police.

Concerning

Tags: BlackBerry Developers

Similar Questions

  • Hi my adobe photoshop password I just change does not work on creative cloud that I paid each month I can do every time I go into a creative cloud to update my photoshop my pass word application does not treated jean sobieski E-mail sobieskijean

    my password on creative cloud does not work I edit in adobe, but it does not work on creative cloud what will I do it please

    To the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html ( http://adobe.ly/19llvMN )

    Manage your membership and your payment. Creative cloud

    https://helpx.Adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting-creative-cloud.html

  • Works writing Maske in swf and video - Datei nicht fonts mask does not work in the swf and video files

    Hallo,

    ICH habe eine writing-Maske standing. In der Voransicht auf der Zeitleiste looks man die Maske,.

    Wie sie richtig should be.

    Aber in exportierten und swf videos. Dateien wird die Maske non dub.

    Was mache ich please.


    Hello

    I created a signature mask. In the Preview on the timeline, you can see the mask,
    as it should be correct.
    But in exported swf videos. files the mask does not work.

    What I am doing wrong.



    ocak.jpgtest1.jpg

    I don't see anything that looks like a mask on your stage effect.

    in general, I think the image hidden (below OCAKBAŞI) is visible and nothing else.  you have two other visible layers makes it difficult to see what you are trying to demonstrate.

    text mask problems generally, because the text is not broken down into vector shapes (by clicking on edit > to break > to break).

  • "Add typekit fonts" button does not work

    Hello

    For some reason, the adobe desktop application synchronize typekit fonts. The button in the tab font of the cc adobe APP does not respond when I click on it. Any thoughts?

    Thank you

    Reinstalled the soft cc of adobe and its working now. Thank you

  • Event.Change does not work

    Hello

    I use Event.CHANGE to the text box. It works very well only in normal mode. It does not full-screen. Please tell me what will be the solution.

    The following help document may help explain...

    http://help.Adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS2E9C7F3B-6A7C-4c5d-8ADD-5B23 446FBEEB.html

    See the section: making keyboard supported mode full screen

  • EA 4.1 pending - outgoing changes changes does not work

    Hello

    I use a Subversion repository connection to my data model (Data Modeler embedded in SQL Developer). After that I made a few changes in the logic model and saved all the. The changes do not appear on the tab outbound changes in the pending changes window. Even if I use the button refresh no outgoing changes are. The same process works fine on an older version of Sql Developer 4.0.3.16.

    Is the process changed in the EA 4.1 or is this a bug?

    Thanks in advance,

    Steven

    Hi Philippe,.

    Thank you! Problem is solved in the Data Modeler 4.1.1.887

    Steven

  • Incorporate the classic fonts TextField does not work, even with applied TextFormat

    Hello.

    I created an article which extends MovieClip and includes a TextField where TI where it will display the name of the element. I want to join the police but I have a problem because the text does not appear.

    I read the description IncorporerPolices (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextField.ht ml #embedFonts) and I formatted the TextField via a TextFormat instance with my chosen font.

    My code:

    import flash.display.MovieClip;

    import flash.text.AntiAliasType;

    import flash.text.TextField;

    import flash.text.TextFieldAutoSize;

    import flash.text.TextFormat;

    SerializableAttribute public class point extends MovieClip {}

    private var _sName:String = "";

    private var _txtName:TextField = new TextField();

    private var _nColor:uint = 0xAACC00;

    private var _tfText:TextFormat = new TextFormat();

    public void Item(s:String) {}

    also tried to integrate here, but got the same result

    s = _txtName.text;

    _txtName.AutoSize = TextFieldAutoSize.RIGHT;

    _tfText.font = "Helvetica";

    _tfText.size = 30;

    _tfText.color = _nColor;

    _txtName.setTextFormat (_tfText);

    _txtName.antiAliasType = AntiAliasType.ADVANCED;

    _txtName.embedFonts = true;

    addChild (_txtName);

    }

    If I remove the part to incorporate the text shows correctly. I am at a loss, what order of the elements of what I need to use to embed fonts properly?

    Thank you.

    1. you should have a font in your library.

    2. it must have a class name (for example, HelveticaClass)

    3. you should use something like:

    helvetica var: make = new HelveticaClass();

    _tfText.font = Helvetica.FontName;

  • I'm trying to change the registry key, but the value change does not work correctly.

    Original title: HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel\ DWORD Does't work on Windows XP

    OS version:

    WindowsXP_x86_English_Professional_SP2

    I put
    HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel\ DWORD
    to 0 and reboot the system.
    But the system is still in the case.
    I can't create A.txt and a.txt in the same folder.
    Why?
    And how I can config XP SP2 as case sensitive?
    Thank you very much!

    Hello

    The steps of troubleshooting from the following link and check if that helps.

    A file system case-insensitive which becomes case insensitive after installing an update for .NET 2.0 Framework

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article: back up the registry

  • How to uninstall McAfee? Standard "uninstall/change" does not work.

    McAfee expires 06/16/11.  Bought Norton, understood he could delete McAfee.  Installed Norton, but - and I have - could not uninstall McAfee.  In addition, McAfee does not entirely - open only a blank white rectangle appears - so can't access the program of in.  This empty rectangle appears when I try to uninstall it, as well.  It is a pain!

    Hello
    anyone can access this removal tool

    all you have to do is Google for her

    How to uninstall or reinstall supported McAfee consumer products using the McAfee Consumer Products Removal (MCPR.exe)

    http://service.McAfee.com/FAQDocument.aspx?ID=TS100507

  • the font size does not work

    Hi guys,.

    I am new to waterfalls.

    I'm changing the font size of text by typing the codes directly and qml properties, but none of them works.

    Here is the code:

    {Label
    text: 'Hello '.
    textStyle.fontSizeValue: 60.0

    }

    I use OS x lion mountain to the code, I am worried if this is the problem.

    Label {
        text: "60 point font, it's large"
        textStyle.fontSize: FontSize.PointValue
        textStyle.fontSizeValue: 60
    }
    
  • Fonts TypeKit does not work properly

    I used the police Adonis. In some blocks of text on the site, it works, but most are not. What could be the problem?

    I solved the problem! I chose "All" in the character set in the properties of the Site. Thank you)

  • Is there a way to change the font size in the comments to a readable/superior police box? I went into preferences and tried making it bigger, and it does not work. Thank you.

    Is there a way to change the font size in the comments to a readable/superior police box? I went to Keynote > Preferences > General and tried making it bigger, and it does not work. Keynote 6.6.1 thanks.

    The fonts themselves, or one of the font attributes cannot be changed; (size, color, tabs or alignment)

    Although it would be very helpful to change the font size, in normal circumstances, this should not be a problem; comments are designed as a personal note by the designer and should only ever be seen by them.

  • Need to reduce the font size after that make it is too big and now save the changes is not displayed. ALT-space bar/entry does not work.

    You have already answered this in forum Windows 7 here, http://social.answers.Microsoft.com/forums/en-us/w7desktop/thread/f464c81d-26a2-49be-aa58-9ab335e64f0c

    but when I press Enter, it returns the window moved to its ' original location - so the problem still exists.

    Also... When you press Alt - Space Bar, the control box is impossible to read the large font size does not fit in the size of the box.  I pressed Alt - M in any case, that gave me the cross and allowed me to move the window, but like I said "enter" returns just the prior position window.  Need more help. Thank you.

    Hello

    Method 1.
    After pressing Alt + space + M you must hold the left key of the mouse and then place the window in place. Check if this is useful.

    Method 2.
    Try changing the size of police as a result of the article below and check if that helps.
    Make the text on the screen larger or smaller
    http://Windows.Microsoft.com/en-us/Windows-Vista/make-the-text-on-your-screen-larger-or-smaller

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Why by default fonts and color does not work after the upgrade to version 31?

    As mentioned on, my default fonts does not work. Any type of police that I've changed, he always showed the times I think that a new font Roman.
    pls help me thanks

    Problem solved. The character encoding for the outgoing is false, I change to the West. Then its ok now

  • Change the size of the text only does not work

    Font size standard on most of the Windows I have open in Windows 8 is a 5 or 6. I'm in front of my computer, 6 to 8 hours per day (teacher online), and it's the single most annoying problem that I have ever met.  "Change the size of the text only ' on my display settings page is grey - there is no solution.  Can I change the size of everything, that gives me giant icons, but the text on all the windows is still tiny.

    I hope someone has a useful suggestion. Please don't tell me to go to "Change the size of text only." This is the function that does not work.
    My Windows 8 was purchased in January - part of the Microsoft $! 5 offer to people who bought computers between October and December of last year. The installation went fairly well, but I had this problem of fonts since then.  ASUS computer laptop, Intel core I7, good resolution, good speed, ideal machine, except that Windows has me squint all that day, seven days a week.
    Thank you and best regards, all
    Reggie Audibert

    Font size standard on most of the Windows I have open in Windows 8 is a 5 or 6. I'm in front of my computer, 6 to 8 hours per day (teacher online), and it's the single most annoying problem that I have ever met.  "Change the size of the text only ' on my display settings page is grey - there is no solution.  Can I change the size of everything, that gives me giant icons, but the text on all the windows is still tiny.

    I hope someone has a useful suggestion. Please don't tell me to go to "Change the size of text only." This is the function that does not work.
    My Windows 8 was purchased in January - part of the Microsoft $! 5 offer to people who bought computers between October and December of last year. The installation went fairly well, but I had this problem of fonts since then.  ASUS computer laptop, Intel core I7, good resolution, good speed, ideal machine, except that Windows has me squint all that day, seven days a week.
    Thank you and best regards, all
    Reggie Audibert

    Hi Reggie

    The option "Change only the size of the text" applies only to the text for the following items.

    Title bars

    Menus

    Message boxes

    Titles of palette

    Text of the icon

    ToolTips

    What you need to do is select the link "Custom resizing options" directly above the option "Change only the text size.

    In the dialog box move the cursor in the rule box, hold down the left button of the mouse and drag the rule. If the size is 100%, try to start with it to 125%.

    Click OK, and then apply. You will be asked to disconnect / connect to before the change takes effect.

    If 125% does not for you try to bump the size up one another 10% gradually until you are satisfied.

    Let us know if it works for you.

    Concerning

Maybe you are looking for