Custom fonts

Hello! I see that after the road map BB10 Custom Fonts have launched now. Can someone point me to a resource on how to use it in my application? Thank you very much!

Dug a little deeper. In case someone is looking too for that:

http://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__fontfacerule.html

Tags: BlackBerry Developers

Similar Questions

  • To only save custom fonts ~

    I know how to make a backup of the fonts [the fonts custom fonts & system]. But is there a way to backup only custom fonts? [Choice of fonts custom inside the fonts folder is a pain]. I'm not too backup system fonts. Thanks in advance :)

    Not automatically, but you can build your own batch file or a script to meet your needs.  You can for example have a list of existing policies and set your backup task to copy only those who are not on this list.

  • 10.1 there Custom Fonts?

    I'm looking how impliment custom fonts and see the roadmap BB10 they came out in August. I think it was BB10.2 before?

    When I search how to impliment them I found the following

    http://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__fontfacerule.html

    That seems to require 10.2, is it true that you can make the custom in 10.1 fonts?

    It is true, that they came only for 10.2.

    The closest you can access policies customized before 10.2 had to use a WebView.

  • Custom fonts: min and max maximum size on the font file?

    Hello

    What is the limit of file size (max and min) on the font file for loading custom fonts?

    I have search the Forum and found a comment by Peter_strange.

    "The documentation says 60 K or 90K depending on how load you, 90 K if you load a an InputStream memory."

    But I want to be sure, share please if someone has the info.

    Thank you.

    Pradeep thanks for your clarification.

    Now, I checked that there is no limit of min file size and maximum file size limit is 90 KB for load of cases and 60 KB in case of direct load flow.

    I also have a resource good sample by peter_strange -.

    http://supportforums.BlackBerry.com/T5/Java-development/font-loader-Manager-utility/m-p/592647#M1223...

  • New custom fonts does not

    I tired different download. OTF and. Test TTF font files, but none of them work on the iPad or the iPhone. Maybe is this feature still in beta and does not yet? If this is not the case, can you please tell how I can get this to work?

    Fonts should work properly. Using preflight DPS app? That does not support custom fonts. You build an application.

  • Custom fonts + preflight

    Looks like that the custom fonts are not recognized with the preflight application.  Does make sense?  They showed before.

    Custom fonts are not yet supported in the preflight DPS application that appears in the store. They are supported in a custom preflight application that you create. It's one of the reasons to build a preflight custom application, as well as the ability to see the app icon and launch images and test push notifications. See this article for more details on the different preview methods: Digital Publishing Solution help | Get an overview of the content for DPS 2015

  • lost all my colors and stacks of custom font I place after that I upgraded to 20141 is this normal

    lost all my colors and custom font stacks that I place after I've upgraded to 20141 it is normal and this will happen whenever I update.

    Hi mi32dogs,

    The October release is a new version completely and not and update to the previous version. As the colors and custom fonts are not migrated, you don't see them.

    It won't happen if you update to an existing version.

    Thank you!

    Kusha

  • Request: Custom fonts reflow

    Please, consider the possibility of adding fonts to reflow.

    In situations like this:

    You´re using a web site under license from the custom fonts provided by the client

    You´re by using a font for the icon, like IcooMonn or FontAwesome

    You´re using another source, not only Typekit and edge fonts

    To use the reactive wireframing reflow and design, I think we nee to cover the situations described before. It s really annoyning switching from one tool to the other, only the first doesn´t of tools allow me to use a different font.

    Thank you very much in advance for your time and even more for the creation of reflow.

    Thanks for the comments. In the next version of reflow, you will be able to use the fonts installed on your local system. If you use a system font it is always up to you to verify the license and successfully deploy fonts for your site, but you should be able to see if properly in your reflow design.

    Thank you for using the Reflow!

    Chris

  • Remove/change custom font Google

    I have a custom font of Google that I put in my animation through the area "add a web font...". "interface. I wanted to add extra weight to the code, but can't seem to find a way to change this. So again, I added the police, but now I have two versions of same exact police.

    Is anyway to change this? Or delete a custom font?

    Hi, stijill-

    You can remove a font by going to the library panel and right-click on the name of the font.  There should be a selection of 'delete '.

    Hope that helps,

    -Elaine

  • Custom fonts display in FrameMaker 10, but appear as blocks in PDF format. Why?

    FrameMaker 10, Acrobat X Pro,.

    Windows 7, 64 - bit PC

    These custom fonts display as numbers of circle of legends. When I 'Save as PDF', they become the blocks. Why?

    This probably isn't the cause, but...

    ... don't forget to embed fonts in the PDF file.

    If the non-Roman font is quite strange, the substitution on a system, there can be very strange indeed.

  • Class derived from LabelField with custom font color, but when focus not only

    Hello

    I have some problems with the LabelField-derived class. I want it has customized color background and police, but only when it does not have focus.

    I tried to do the following:

    protected void paint(Graphics g) {
        if (isFocus()) {
            super.paint(g);
        }
        else {
            final int bgColor = g.getBackgroundColor();
            final int fgColor = g.getColor();
    
            g.setBackgroundColor(backgroundColor);  // from member
            g.setColor(fontColor);  // from member
    
            super.paint(g);
    
            g.setColor(fgColor);
            g.setBackgroundColor(bgColor);
        }
    }
    

    but the final effect is that this field has the custom until the first focus/unfocus font color. When I do not check the isFocus(), police have custom color when the field has focus too.

    Similar do in drawFocus (Graphics g, boolean on) does not solve the problem either.

    I target BB > = 4.6.0.

    Do you know how to do properly without calls drawText custom?

    Kind regards

    Piotr

    What happens if you replace

    If (isFocus())

    with

    If (g.isDrawingStyleSet (Graphics.DRAWSTYLE_FOCUS))

    and (maybe - I'm totally guessing here) substitute drawFocus doing nothing?

    BlackBerry GUI has many peculiarities, so you never know what path is right.

    A word of caution: most likely, you will have also to invalidate() field when it changes its "focused" State Don't do this in onFocus() / onUnfocus()! Those (especially the onUnfocus()) are not always correctly called (BB frame problem). Make your field implement FocusChangeListener and make these invalidations in the method focusChanged() (using setFocusListener (this) somewhere in the constructor).

  • OPA Cloud: add custom fonts

    : Hi people.

    I would like to know if it is possible to add a police custom in the clouds of the OPA.

    I use Cloud Edition February 2015.

    See you soon,.

    You can use CSS style sheets to change the font. If the new font to be used is a web font, then it is much easier to see that in your style sheets.

  • Custom font problem

    Hello world

    Please help me I want to load customize font "Calibri.TTF", but it is not my work code is given...

    FontFamily family=null;
    
    if (FontManager.getInstance().load("CalibriBold.TTF", "MyFont11", FontManager.APPLICATION_FONT) == FontManager.SUCCESS)
                    {
                        try
                        {
                            family  = FontFamily.forName("MyFont11");
    
                        }
                        catch (ClassNotFoundException e)
                        {
                            try{
                                  family=FontFamily.forName(FontFamily.FAMILY_SYSTEM);
                            }catch(Exception ex){}      
    
                        }
                    }
    

    Tell me what is the problem with this

    Check your path. Otherwise, check the return value. One of the most common mistakes that people make takes a really big font. BlackBerry has a restriction of size of 6 MB on fonts.

  • Use Custom Font in application blakcberry

    Hi all

    I want to use a police custom in my application so that there is consistency in the application. My application supports all OS. I found the solution in the doc, but it uses FontManager which is not supported by the OS less than 5.

    If anyone knows the solution please let me know.

    Any code snippet will be a great help.

    Thank you

    prior to 5.0, it is impossible.

  • Custom font size

    In my Application needs to apply policies external name (sathu.ttf). I tried after the code, but the font size is not changed as my given size. can you suggest me if iam using the right?

    final class SathuLabelBox extends LabelField
    {
    
        int color = Color.BLACK;
        int fntSize = 18;
        int _width = 300;
    
        public SathuLabelBox(String caption,int TxtColor,int fsize,int width){
            super(caption);
            color = TxtColor;
            fntSize = fsize;
            _width = width;
            if (FontManager.getInstance().load("Sathu.ttf", "MyFont", FontManager.APPLICATION_FONT) == FontManager.SUCCESS)
            {
                try
                {
                    FontFamily typeface = FontFamily.forName("MyFont");
                    Font myFont = typeface.getFont(Font.PLAIN, fntSize);
                    this.setFont(myFont);
                }
                catch (ClassNotFoundException e)
                {
                    System.out.println(e.getMessage());
                }
            }
        }
    
        protected void onFocus(int direction){
            color = Color.GREEN;
            fntSize = 22;
            invalidate();
        }
        protected void onUnfocus(){
            color = Color.BLACK;
            invalidate();
        }
        public void paint(Graphics graphics) {
            graphics.setColor(color);
            super.paint(graphics);
        }
        protected void drawFocus(Graphics graphics, boolean on)
        {
            if (on)
            {
                //Get the field size that is available from its manager.
                XYRect rect = this.getManager().getContentRect();         
    
                graphics.setGlobalAlpha(50);
            }
        }
        public int getPreferredWidth(){
            return _width;
        }
    }
    

    replace
    fntSize = 22;
    with setFont (xxx)

Maybe you are looking for

  • New watched Apple has stopped working.

    My phone of Apple 1 month just turned off while I was wearing it yesterday. I tried to restart and force the reboot and nothing happened. Also noticed when the phone was on charger it became very hot. Does anyone else have this experience?

  • Re: Tecra A10 - 1 5, Windows 8 is not compatible?

    Dear SirWindows 8 upgrades very well for example drivers etc for this model youIan

  • A30 turns itself off

    Hi, I have a satellite A30, every time that a do a virus scan or play a game as football coach my laptop turns off by itself. the time scale is different every time and it never happens when iam right on the internet. advice please

  • ENVY H8-1435: Cannot download HP Support Assistant

    Can someone link me to the last download HP Support Assistant?  I try and click download on the page of the driver of my PC and it just redirects me to the selection of the language for the main support site.  Same goes for all the other links I've t

  • Right-click Office

    I'm not able to access infromation properties to change the settings for the desktop by right-clicking on the desktop.  The box, but when I click Properties, the computer freezes and must be turned off manually.  I recently had a new hard drive insta