FontManager; CustomFonts

Hey,.

I try to use my own custom fonts and reading the documentation, it indicates that the .ttf file cannot be larger than 60 KB. However my file true-type fonts is 63.3 KB ... That someone knows or can suggest a way I can lower the size of this file by editing or compressing somehow?

Mitchell Romanuik.

This is my solution. I used the inputStream instead of directly loading from file...

InputStream stream = this.getClass().getResourceAsStream("font.ttf");
        if (FontManager.getInstance().load(stream, "MyFont", FontManager.APPLICATION_FONT) == FontManager.SUCCESS){
            try{
                FontFamily family = FontFamily.forName("MyFont");
                Font myFont = family.getFont(Font.PLAIN, 50);
                gamer.getInfo().setFont(myFont);
            }
            catch (ClassNotFoundException e){System.out.println(e.getMessage());}
        }

Mitchell Romanuik.

Tags: BlackBerry Developers

Similar Questions

  • Adobe CS6 + apps Apple Mac OS Sierra and Fontmanaging

    Hello

    Recently updated my OS from Yosemite to Sierra.

    My Creative Suite (InDesign, PhotoShop and Illustrator) 6 seems to running on the operating system of Sierra.

    But my Fusion3 Extensis font manager does not work.

    I asked with Extensis and they can offer some Fusion7.

    7 merger is compatible with the Sierra and CC, but not with CS6.

    Spanning CC is not an option. I do not use the applications frequently, so it is expensive.

    Can someone help me?

    How can I solve the problem of font management?

    Thank you

    Henri

    I asked directly at Extensis. They say that the combination does not work.

    In fact, I use a trial version of FontExplorer X Pro 6.

    So far, it works perfectly. Very professional.

    See: FontExplorer® X Pro - software of management of fonts & free trial

  • After the recent upgrade Indesign creashes at startup. Error related to FontManager

    CTC 2015 last rev.

    S.O. Windows

    After mid June upgraded Indesign crashes at startup.

    Windows reports:

    Nome dell' application che ha generato error: InDesign.exe, version: 11.4.0.90, time stamp: 0x574c8600

    Nome del modulo che ha generato error: MANAGER of FONTS. RPLN, version: 11.4.0.90, time stamp: 0x574c88c4

    Exception code: 0xc0000005

    Compensate for the error 0x000000000006e64d

    ID processo che ha generato error: 0x15b4

    Ora di d dell' application che ha generato error: 0x01d1cc575009eecd

    Percorso dell' application che ha generato error: C:\Program Files\Adobe\Adobe InDesign 2015\InDesign.exe CC

    Percorso del modulo che ha generato error: C:\Program Files\Adobe\Adobe InDesign 2015\Required\FONT CC MANAGER. RPLN

    Segnalazione ID: 908d0d08-384a-11e6-9da9-386077ce4453

    This has happened on 2 different PCs, a resolved after reinstalling SW, the other problem woth yet.

    Hi all

    We are aware of the problem where InDesign crashes on launch while working with library files stored on a network location.

    We are working on resolving the issue and for the moment, please try the solution that we have identified.

    To work around the problem, please follow the steps below:

    Clear the Cache InDesign either by renaming the Cache folder or deleting it altogether. (It is best to rename the folder)

    The location of the cache folder: -.

    Windows XP: C:\Documents and Settings\Settings\Application Data\Adobe\InDesign\------\Caches\

    Windows 7 or 10: C:\Users\\AppData\Local\Adobe\InDesign\-\Caches\

    Macintosh: Drive hard/users/InDesign/Library/Caches/Adobe///.

    In addition, if your workflow requires you to work with the (different) library placed on the network, please make sure you close the library panel before leaving InDesign.

    Concerning

    Afonso

    (InDesign engineering team)

  • Police shows only correctly on the first run after installation

    I have a really weird problem where my custom font is displayed correctly on the first run of my application after installation in the Simulator or device. Subsequent executions of the application, display the fields with the default system font.

    The service I use is this:

    public static Font GetCustomFont(boolean bold, int size)
    {
        Font myFont = null;
    
        if (FontManager.getInstance().load("customfont.ttf", "custom", FontManager.APPLICATION_FONT) ==FontManager.SUCCESS)
        {
            try
            {
                FontFamily typeface = FontFamily.forName("custom");
                if (bold) myFont = typeface.getFont(Font.BOLD, size);
                else myFont = typeface.getFont(Font.ITALIC, size);
            }
            catch (Exception e)
            { e.printStackTrace(); }
        }
        return myFont;
    }
    

    and the font is used as follows:

    LabelField myLabel = new LabelField("TESTING CUSTOM FONT");
    myLabel.setFont(GetCustomFont(false, 24));
    add(myLabel);
    

    The police show up nicely the first time I run the application. Even though I call System.exit (0), then restart the application, it is up to the top with the system font. My policy is a TTF 46KO file, which is added to the res folder of my project and I develop for BB 7.0.0.

    Can someone please help?

    You should check the return code of

    FontManager.getInstance () .load (...)

    You agree that SUCCESS, I think that you will find in the following executions that return code is something like 'Already loaded' and so you can use it in this circumstance too.

  • I get error hs_err _pid 5472.log Notepad and hs_err _pid3852.log I do not understand what it means. I have not installed anything new.

    A fatal error has been detected by Java runtime environment:
    #
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc = 0x006e0065, pid = 5472, tid = 1784
    #
    # Version JRE: 6.0_26 - b03
    # Java VM: Java hotspot Client VM (20, 1 - b02 mixed mode, sharing windows - x 86)
    # Problematic frame:
    C# 0X006E0065
    #
    # If you want to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The accident happened outside the Virtual Machine Java to native code.
    # See problematic frame for where report them the bug.
    #

    ---------------  T H R E A D  ---------------

    The current thread (0x0325dc00): JavaThread "AWT-Windows" daemon [_thread_in_native, id = 1784, stack(0x03550000,0x035a0000)]

    siginfo: ExceptionCode = 0xc0000005, address 0x006e0065 reading

    Records:
    EAX = 0X00C78E48 EBX = 0X00000001, ECX = 0X033E5A58 EDX = 0 X 00000004
    ESP = 0X0359F800 EBP = 0X0359F82C ESI = 0X0325DD28 EDI = 0X033E5A58
    EIP = 0X006E0065, EFLAGS = 0 X 00010293

    Top of the stack: (sp = 0x0359f800)
    0x0359f800: 6d09cb90 0359f894 6d09c650 00000000
    0x0359f810: 00000000 00000001 0325dd28 0359f804
    0x0359f820: 0359f8b0 6d0c04a8 00000001 0359f858
    0x0359f830: 7e418734 001 b 0534 0000981a 033e5a58
    0x0359f840: 00000000 00000000 6d09c650 jessicadelacourt
    0x0359f850: 0359f894 6d09c650 0359f8c0 7e418816
    0x0359f860: 6d09c650 001 b 0534 0000981a 033e5a58
    0x0359f870: 00000000 0359f954 0359f94c 005ea378

    Operating instructions: (pc = 0x006e0065)
    0x006e0045:
    [error has occurred in the information error (printing of registers, the top of the stack, instructions near pc), id 0xc0000005]

    Register for memory mapping:

    EAX = 0x00c78e48 is an unknown value
    X 00000001 EBX = 0 is an unknown value
    ECX = 0x033e5a58 is an unknown value
    EDX = 0 x 00000004 is an unknown value
    ESP = 0x0359f800 is oriented in the stack for the thread: 0x0325dc00
    EBP = 0x0359f82c is oriented in the stack for the thread: 0x0325dc00
    ESI = 0x0325dd28 is an unknown value
    EDI = 0x033e5a58 is an unknown value

    Battery: 0 x 03550000 (0x035a0000) and sp = 0x0359f800, free space = 318 k
    Native frames: (J = compiled code Java, j = interpreted, Vv = VM code, C = native code)
    C 0X006E0065
    GetDC C [USER32.dll + 0 x 8734] + 0x6d
    GetDC C [USER32.dll + 0 x 8816] + 0x14f
    C [USER32.dll + 0x89cd] GetWindowLongW + 0 x 127
    C [USER32.dll + 0x8a10] DispatchMessageW + 0xf

    Java images: (J = compiled Java code, j = interpreted, Vv = VM code)
    j sun.awt.windows.WToolkit.eventLoop (V + 0)
    j sun.awt.windows.WToolkit.run (V + 52)
    j java.lang.Thread.run (V + 11)
    v ~ StubRoutines::call_stub

    ---------------  P R O C E S S  ---------------

    Java threads: (=> the current thread)
    JavaThread "Keep-Alive-Timer" 0x0327bc00 demon [_thread_blocked, id = 5192, stack (0x046b0000, 0 x 04700000)]
    JavaThread 'Image host 0' 0x05d9e800 daemon [_thread_blocked, id = 4664, stack(0x01090000,0x010e0000)]
    0x08544c00 'TickTimer' demon JavaThread [_thread_blocked, id = 2348, stack (0 x 09700000, 0 x 09750000)]
    JavaThread "ITimer" demon 0x06365c00 [_thread_blocked, id = 5952, stack(0x09660000,0x096b0000)]
    0x060e3400 JavaThread "ScrollBar" daemon [_thread_blocked, id = 5736, stack(0x07460000,0x074b0000)]
    0x04e86800 JavaThread 'TextField' daemon [_thread_blocked, id = 4516, stack (0 x 07410000, 0 x 07460000)]
    0 x 06729400 JavaThread "ScrollBar" daemon [_thread_blocked, id = 5956, stack (0x073c0000, 0 x 07410000)]
    0x065ab400 JavaThread "ScrollBar" daemon [_thread_blocked, id = 192, stack(0x07370000,0x073c0000)]
    0x05bea400 JavaThread "ScrollBar" daemon [_thread_blocked, id = 5968, stack (0 x 07320000, 0 x 07370000)]
    0x06e14c00 JavaThread "ScrollBar" daemon [_thread_blocked, id = 3300, stack (0 x 05800000, 0 x 05850000)]
    0x04b48400 JavaThread "ScrollBar" daemon [_thread_blocked, id = 3592, stack (0x04ac0000, 0x04b10000)]
    0x00c77000 'TickTimer' demon JavaThread [_thread_blocked, id = 5920, stack (0x04a20000, 0x04a70000)]
    0x0336d400 JavaThread "ScrollBar" daemon [_thread_blocked, id = 3688, stack (0x049d0000, 0x04a20000)]
    0x0336ac00 'BadgeStorage' demon JavaThread [_thread_blocked, id = 3224, stack (0 x 04930000, 0 x 04980000)]
    0 x 03375800 'AsynchRasterManager.avatar' demon JavaThread [_thread_blocked, id = 3112, stack (0x055c0000, 0 x 05610000)]
    JavaThread 'Thread-68' 0x03294c00 daemon [_thread_in_native, id = 3048, stack (0x051e0000, 0 x 05230000)]
    0x04d28800 'AsynchRasterManager' demon JavaThread [_thread_blocked, id = 4360, stack (0x04a70000, 0x04ac0000)]
    0 x 03449400 JavaThread "thread applet - com.pogo.game.client2.shell.ShellApplet - 14" [_thread_blocked, id = 3452, stack (0 x 04840000, 0 x 04890000)]
    JavaThread 0x032ba000 "thread applet - com.pogo.game.client2.shell.ShellApplet - 13" [_thread_blocked, id = 4752, stack (0x047a0000, 0x047f0000)]
    JavaThread 0x032eb800 "thread applet - com.pogo.game.client2.freebingo.FreeBingoApplet - 12" [_thread_blocked, id = 2560, stack (0 x 04700000, 0 x 04750000)]
    JavaThread 0x033a6800 "thread applet - com.pogo.game.client2.shell.ShellApplet - 11" [_thread_blocked, id = 1684, stack (0x043e0000, 0 x 04430000)]
    JavaThread 0x04b2c800 "thread applet - com.pogo.game.client2.shell.ShellApplet - 10" [_thread_blocked, id = 2532, stack (0x036f0000, 0 x 03740000)]
    JavaThread 'AWT-EventQueue-7' 0x04b19800 [_thread_in_native, id = 2896, stack (0x048e0000, 0 x 04930000)]
    0x0605d000 JavaThread "AWT-stop" [_thread_blocked, id = 4716, stack(0x04890000,0x048e0000)]
    0x00c9d800 JavaThread cmdlet-18 LiveConnect Worker Thread"[_thread_blocked, id = 3776, stack(0x04750000,0x047a0000)]
    0x04bd7800 JavaThread cmdlet-17 LiveConnect Worker Thread"[_thread_blocked, id = 3028, stack(0x04470000,0x044c0000)]
    0x05b09000 JavaThread "Applet 16 LiveConnect Worker Thread" [_thread_blocked, id = 896, stack (0 x 03830000, 0 x 03880000)]
    0x05ea5800 JavaThread cmdlet-15 LiveConnect Worker Thread"[_thread_blocked, id = 3476, stack (0 x 03500000, 0 x 03550000)]
    0x04d5dc00 JavaThread 'Java Sound event dispatcher' demon [_thread_blocked, id = 4600, stack(0x05190000,0x051e0000)]
    0x0329bc00 JavaThread ' browser side object cleanup thread "[_thread_blocked, id = 4248, stack(0x04380000,0x043d0000)]
    0 x 03272400 JavaThread 'Feed icon bar State Windows' [_thread_in_native, id = 1024, stack (0x037e0000, 0 x 03830000)]
    JavaThread "CacheCleanUpThread" demon 0x0326fc00 [_thread_blocked, id = 4852, stack(0x03790000,0x037e0000)]
    0 x 03268800 'CacheMemoryCleanUpThread' demon JavaThread [_thread_blocked, id = 5344, stack (0 x 03740000, 0 x 03790000)]
    0 x 03265800 'SysExecutionTheadCreator' demon JavaThread [_thread_blocked, id = 3788, stack (0 x 03200000, 0 x 03250000)]
    0 x 03262000 JavaThread "thread of Heartbeat Java plug-in" [_thread_blocked, id = 5772, stack (0x036a0000, 0x036f0000)]
    -Online 0x0325dc00 JavaThread "AWT-Windows" daemon [_thread_in_native, id = 1784, stack(0x03550000,0x035a0000)]
    0x0325b000 JavaThread "Shredder Java2D" demon [_thread_blocked, id = 1656, stack (0x034a0000, 0x034f0000)]
    0 x 03258800 JavaThread "Java plug-in - Pipe Worker Thread (Client side) ' daemon [_thread_in_native, id = 1736, stack(0x03450000,0x034a0000)]
    JavaThread 'Timer-0' 0x00ce8400 [_thread_blocked, id = 2376, stack(0x01190000,0x011e0000)]
    0x00c84c00 'traceMsgQueueThread' demon JavaThread [_thread_blocked, id = 2000, stack (01100000 0 x, 0 x 01150000)]
    JavaThread "Low memory detector" 0x00c5cc00 demon [_thread_blocked, id = 3332, stack (0x00ed0000, 0x00f20000)]
    JavaThread "CompilerThread0 C1" demon 0x00c56400 [_thread_blocked, id = 3992, stack (0x00e80000, 0x00ed0000)]
    JavaThread "Listener set" 0x00c54800 demon [_thread_blocked, id = 3660, stack (0x00e30000, 0x00e80000)]
    JavaThread 'Dispatcher of Signal' demon 0x00c53400 [_thread_blocked, id = 3756, stack (0x00de0000, 0x00e30000)]
    0x00c4fc00 JavaThread 'Finalizer' daemon [_thread_blocked, id = 1204, stack (0x00d90000, 0x00de0000)]
    0x00c47c00 JavaThread "Reference Handler" daemon [_thread_blocked, id = 3752, stack (0x00d40000, 0x00d90000)]
    0 x 00398000 'hand' JavaThread [_thread_blocked, id = 3512, stack(0x00980000,0x009d0000)]

    Other topics:
    0x00c0bc00 VMThread [stack: 0x00cf0000, 0x00d40000] [id = 3572]
    0x00c6f800 WatcherThread [stack: 0x00f20000, 0x00f70000] [id = 3320]

    VM status: not to the point of restoration (normal execution)

    VM Mutex/monitor currently owned by thread: None

    Bunch
    total of new generation def 27456K, used 21144K [0x2a790000, 0x2c550000, 0x2d230000)
    Eden space 24448K, 82% have used [0x2a790000, 0x2bb3b3c0, 0x2bf70000)
    from space 3008K, 33% used [0x2c260000, 0x2c35ac48, 0x2c550000)
    3008K-space, 0% used [0x2bf70000, 0x2bf70000, 0x2c260000)
    tenure generation total 60728K, used 49353K [0x2d230000, 0x30d7e000, 0 x 32790000)
    60728K-space, 81% have used [(0x302624b8, 0x30262600, 0x2d230000, 0x30d7e000)]
    compaction perm gen total 12288K, used 5628K [0 x 32790000, 0 x 33390000, 0 x 36790000)
    12288K-space, 45% have used [0x32d0f1b8, 0x32d0f200, 0 x 32790000, 0 x 33390000)
    RO space 10240 K, 51% have used [0x36cbdff8, 0x36cbe000, 0 x 36790000, 0 x 37190000)
    RW space 12288K, 55% used [(0x3782c208, 0x3782c400, 0x37190000, 0x37d90000)]

    Hiding code [0 x 01200000, 0 x 01678000, 0 x 03200000)
    total_blobs = 2309 nmethods = 2063 cards = 179 free_code_cache = largest_free_block 28894400 = 256

    Dynamic libraries:
    0x00400000 - 0 x 00424000 C:\Program Files\Java\jre6\bin\java.exe
    0x7c900000 - 0x7c9b2000 C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f6000 C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f03000 C:\WINDOWS\system32\RPCRT4.dll
    0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
    0x5cb70000 - 0x5cb96000 C:\WINDOWS\system32\ShimEng.dll
    0 x 71590000 - 0 x 71609000 C:\WINDOWS\AppPatch\AcLayers.DLL
    0x7e410000 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f59000 C:\WINDOWS\system32\GDI32.dll
    0x7c9c0000 - 0x7d1d7000 C:\WINDOWS\system32\SHELL32.dll
    0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll
    0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
    0x774e0000 - 0x7761e000 C:\WINDOWS\system32\ole32.dll
    0x769c0000 - 0x76a74000 C:\WINDOWS\system32\USERENV.dll
    0 x 73000000 - 0 x 73026000 C:\WINDOWS\system32\WINSPOOL. CR1
    0 x 76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32. DLL
    0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\comctl32.dll
    0x7c340000 - C:\Program Files\Java\jre6\bin\msvcr71.dll 0x7c396000
    0x6d7f0000 - C:\Program Files\Java\jre6\bin\client\jvm.dll 0x6da9f000
    0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
    0x6d7a0000 - C:\Program Files\Java\jre6\bin\verify.dll 0x6d7ac000
    0x6d320000 - C:\Program Files\Java\jre6\bin\java.dll 0x6d33f000
    0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI. DLL
    0x6d7e0000 - C:\Program Files\Java\jre6\bin\zip.dll 0x6d7ef000
    0x6d420000 - C:\Program Files\Java\jre6\bin\jp2native.dll 0x6d426000
    0x6d1d0000 - C:\Program Files\Java\jre6\bin\deploy.dll 0x6d1e3000
    0x77a80000 - 0x77b15000 C:\WINDOWS\system32\CRYPT32.dll
    0x77b20000 - 0x77b32000 C:\WINDOWS\system32\MSASN1.dll
    0 x 77120000 - 0x771ab000 C:\WINDOWS\system32\OLEAUT32.dll
    0x3d930000 - 0x3da16000 C:\WINDOWS\system32\WININET.dll
    0x00f70000 - 0x00f79000-C:\WINDOWS\system32\Normaliz.dll
    0 x 78130000 - 0 x 78263000 C:\WINDOWS\system32\urlmon.dll
    0x3dfd0000 - 0x3e1b9000 C:\WINDOWS\system32\iertutil.dll
    0x6d6a0000 - C:\Program Files\Java\jre6\bin\regutils.dll 0x6d6e6000
    0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
    0x6d600000 - C:\Program Files\Java\jre6\bin\net.dll 0x6d613000
    0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
    0x6d620000 - C:\Program Files\Java\jre6\bin\nio.dll 0x6d629000
    0x6d000000 - C:\Program Files\Java\jre6\bin\awt.dll 0x6d14b000
    0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\comctl32.dll
    0 x 74720000 - 0x7476c000 C:\WINDOWS\system32\MSCTF.dll
    0x77b40000 - 0x77b62000 C:\WINDOWS\system32\apphelp.dll
    0x755c0000 - 0x755ee000 C:\WINDOWS\system32\msctfime.ime
    0x6d230000 - C:\Program Files\Java\jre6\bin\fontmanager.dll 0x6d27f000
    0x71a50000 - 0x71a8f000 C:\WINDOWS\System32\mswsock.dll
    0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
    0x76d60000 - 0x76d79000 C:\WINDOWS\system32\iphlpapi.dll
    0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
    0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
    0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
    0x10000000 - 0x1001f000 C:\WINDOWS\system32\iavlsp.dll
    0 x 77690000 - 0x776b1000 C:\WINDOWS\system32\NTMARTA. DLL
    0x71bf0000 - 0x71c03000 C:\WINDOWS\system32\SAMLIB.dll
    0x662b0000 - 0 x 66308000 C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
    0x6d510000 - C:\Program Files\Java\jre6\bin\jsound.dll 0x6d535000
    0x6d540000 - C:\Program Files\Java\jre6\bin\jsoundds.dll 0x6d548000
    0x73f10000 - 0x73f6c000 C:\WINDOWS\system32\DSOUND.dll
    0x76c30000 - 0x76c5e000 C:\WINDOWS\system32\WINTRUST.dll
    0x76c90000 - 0x76cb8000 C:\WINDOWS\system32\IMAGEHLP.dll
    0x72d20000 - 0x72d29000 C:\WINDOWS\system32\wdmaud.drv
    0x72d10000 - 0x72d18000 C:\WINDOWS\system32\msacm32.drv
    0x77be0000 - 0x77bf5000 C:\WINDOWS\system32\MSACM32.dll
    0x77bd0000 - 0x77bd7000 C:\WINDOWS\system32\midimap.dll
    0x73ee0000 - 0x73ee4000 C:\WINDOWS\system32\KsUser.dll
    0x6d440000 - C:\Program Files\Java\jre6\bin\jpeg.dll 0x6d465000
    68000000 0 x - 0 x 68036000 C:\WINDOWS\system32\rsaenh.dll
    0x5b860000 - 0x5b8b5000 C:\WINDOWS\system32\netapi32.dll
    0x1c000000 - 0x1c006000 C:\WINDOWS\HKNTDLL.dll

    VM Arguments:
    jvm_args :-D__jvm_launched = 5409301771 - Xbootclasspath/a:C:\PROGRA~1\Java\jre6\lib\deploy.jar; C:\Progra~1\Java\jre6\lib\javaws.jar; C:\Progra~1\Java\jre6\lib\plugin.jar-Dsun.awt.warmup=true-Xmx128m
    java_command: sun.plugin2.main.client.PluginMain write_pipe_name = jpi2_pid2736_pipe10, read_pipe_name = jpi2_pid2736_pipe9
    Type of launcher: SUN_STANDARD

    Environment variables:
    Path = c: 9.0\Reader\plug_ins; C:\Program 9.0\Reader\ Adobe. C:\Program may Explorer; C:\Windows\System32; C:\WINDOWS; C:\WINDOWS\System32\Wbem; C:\Windows\system32\WindowsPowerShell\v1.0; C:\PROGRA~1\COMMON~1\MUVEET~1\030625; C:\Program 9.0\Reader\plug_ins\test_tools Adobe
    USERNAME = administrator
    OS = Windows_NT
    PROCESSOR_IDENTIFIER = x 86 Family 15 Model 4 Stepping 1, GenuineIntel

    ---------------  S Y S T E M  ---------------

    OS: Windows XP Build 2600 Service Pack 3

    CPU:total 2 (1 cores per processor, 2 threads by heart) family 15 model 4 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht

    Memory: 4 k page, physical 1038184 k (366092 k free), Exchange 2498512 k (1765136 k free)

    vm_info: Java hotspot Client VM (20, 1 - b02) for JRE windows - x 86 (1.6.0_26 - b03), built on May 4, 2011 00:50:59 by "java_re" with MS VC ++ 7.1 (VS2003)

    time: Wed Jul 27 10:42:01 2011
    elapsed time: 1443 seconds

    and

    A fatal error has been detected by Java runtime environment:
    #
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc = 0x7c919af2, pid = 3852, tid = 3788
    #
    # Version JRE: 6.0_26 - b03
    # Java VM: Java hotspot Client VM (20, 1 - b02 mixed mode, sharing windows - x 86)
    # Problematic frame:
    # C [ntdll.dll + 0x19af2]
    #
    # If you want to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The accident happened outside the Virtual Machine Java to native code.
    # See problematic frame for where report them the bug.
    #

    ---------------  T H R E A D  ---------------

    The current thread (0x00caec00): JavaThread "AWT-Windows" daemon [_thread_in_native, id = 3788, stack(0x03550000,0x035a0000)]

    siginfo: ExceptionCode = 0xc0000005, address 0x00000010

    Records:
    EAX = 0 X 00000000 EBX = 0 X 00000000 ECX = 0 X 00001488, EDX = 0X00CE1E90
    ESP = 0X0359F8D0 EBP = 0X0359F944 ESI = 0X00CE1E80 EDI = 0X00000000
    EIP = 0X7C919AF2, EFLAGS = 0 X 00010246

    Top of the stack: (sp = 0x0359f8d0)
    0x0359f8d0: 00ce1e80 00ce1d50 00000001 002e002c
    0x0359f8e0: 6d0c76b4 00090544 0000982c 0359f8dc
    0x0359f8f0: 00000000 00000000 0000c0cf 0359f8c8
    0x0359f900: 0359f980 7c839ad8 7c830c98 ffffffff
    0x0359f910: 7c830c90 7c834ed8 6d062a1c 6d062aa8
    0x0359f920: 6d101d8c 6d101d6c 6d101d70 6d06422c
    0x0359f930: 7e42d312 00ce1d50 7e418b8c 00000000
    0x0359f940: 00001488 0359f98c 7 c 901046 00ce1e80

    Operating instructions: (pc = 0x7c919af2)
    0x7c919ad2: 97 7 c f6 57 1B c0 d0 e1 97 25 e0 f7 d8 7 c 8B f8
    0x7c919ae2: 8 b 46 10 and 3 b c3 45 89 CF 0f 84 00 00 00 8 9th b 06
    0x7c919af2: ff b 40 10 8 45 fc 83 01 89 45 8 b 06 e8 e0 ff 40
    0x7c919b02: 14 05 02 fe 7f 01 0f 85 16 9 f0 f6 02 00 39 5 d d

    Register for memory mapping:

    EAX = 0 x 00000000 is an unknown value
    EBX = 0 x 00000000 is an unknown value
    ECX = 0 x 00001488 is an unknown value
    EDX = 0x00ce1e90 is an unknown value
    ESP = 0x0359f8d0 is oriented in the stack for the thread: 0x00caec00
    EBP = 0x0359f944 is oriented in the stack for the thread: 0x00caec00
    ESI = 0x00ce1e80 is an unknown value
    EDI = 0 x 00000000 is an unknown value

    Battery: 0 x 03550000 (0x035a0000) and sp = 0x0359f8d0, free space = 318 k
    Native frames: (J = compiled code Java, j = interpreted, Vv = VM code, C = native code)
    C [ntdll.dll + 0x19af2] RtlpWaitForCriticalSection + 0x5b
    C [ntdll.dll + 0 x 1046] RtlEnterCriticalSection + 0 x 46
    GetDC C [USER32.dll + 0 x 8734] + 0x6d
    GetDC C [USER32.dll + 0 x 8816] + 0x14f
    C [USER32.dll + 0x18ea0] + 0 DefWindowProcW x 180
    C [USER32.dll + 0x18eec] DefWindowProcW + 0x1cc
    C [ntdll.dll + 0xe473] KiUserCallbackDispatcher + 0 x 13
    C [USER32.dll + 0 x 9402] PeekMessageW + 0 x 167

    Java images: (J = compiled Java code, j = interpreted, Vv = VM code)
    j sun.awt.windows.WToolkit.eventLoop (V + 0)
    j sun.awt.windows.WToolkit.run (V + 52)
    j java.lang.Thread.run (V + 11)
    v ~ StubRoutines::call_stub

    ---------------  P R O C E S S  ---------------

    Java threads: (=> the current thread)
    0x00cbf000 'TickTimer' demon JavaThread [_thread_blocked, id = 5692, stack(0x06570000,0x065c0000)]
    JavaThread "ITimer" demon 0x049eb400 [_thread_blocked, id = 5580, stack (0x05cd0000, 0x05d20000)]
    JavaThread 'Image host 0' 0x033bd000 daemon [_thread_blocked, id = 5528, stack (0x05ad0000, 0x05b20000)]
    0x032edc00 JavaThread "ScrollBar" daemon [_thread_blocked, id = 5508, stack (0x05a80000, 0x05ad0000)]
    0 x 03331800 JavaThread 'TextField' daemon [_thread_blocked, id = 5504, stack (0x05a30000, 0x05a80000)]
    0x04b29400 JavaThread "ScrollBar" daemon [_thread_blocked, id = 5500, stack (0x059e0000, 0x05a30000)]
    0 x 03310400 JavaThread "ScrollBar" daemon [_thread_blocked, id = 5496, stack(0x05990000,0x059e0000)]
    0x04b35c00 JavaThread "ScrollBar" daemon [_thread_blocked, id = 5492, stack (0 x 05940000, 0 x 05990000)]
    0x04a7a400 JavaThread "ScrollBar" daemon [_thread_blocked, id = 5488, stack (0x058f0000, 0 x 05940000)]
    0x032e8c00 JavaThread "ScrollBar" daemon [_thread_blocked, id = 5484, stack (0x058a0000, 0x058f0000)]
    0x032d8400 'TickTimer' demon JavaThread [_thread_blocked, id = 5480, stack(0x05850000,0x058a0000)]
    0x04a5d800 JavaThread "ScrollBar" daemon [_thread_blocked, id = 5476, stack (0 x 05800000, 0 x 05850000)]
    0x0493a400 'BadgeStorage' demon JavaThread [_thread_blocked, id = 5472, stack (0x055d0000, 0 x 05620000)]
    0x0332ac00 'AsynchRasterManager.avatar' demon JavaThread [_thread_blocked, id = 4940, stack(0x05580000,0x055d0000)]
    0x0332a800 JavaThread 'Clip Direct' daemon [_thread_blocked, id = 4936, stack (0 x 04700000, 0 x 04750000)]
    JavaThread "Thread-31" 0x00ce4400 demon [_thread_in_vm, id = 4896, stack (0 x 05010000, 0 x 05060000)]
    0x0486b800 JavaThread 'Java Sound event dispatcher' demon [_thread_blocked, id = 4680, stack (0x04fc0000, 0 x 05010000)]
    JavaThread 0x00c0a000 "thread applet - com.pogo.game.client2.wordjong.WordjongApplet - 5" [_thread_blocked, id = 4580, stack (0x04c90000, 0x04ce0000)]
    JavaThread 0x00ce1800 "thread applet - com.pogo.game.client2.shell.ShellApplet - 4 ' [_thread_blocked, id = 4576, stack (0x04c40000, 0x04c90000)]
    JavaThread 0x032d7800 "thread applet - com.pogo.game.client2.shell.ShellApplet - 3 ' [_thread_blocked, id = 4572, stack (0x04bf0000, 0x04c40000)]
    0x032da400 JavaThread cmdlet-4 LiveConnect Worker Thread"[_thread_blocked, id = 4556, stack(0x04760000,0x047b0000)]
    0 x 03254800 JavaThread 'AWT-EventQueue-4' [_thread_in_native, id = 4552, stack (0 x 03600000, 0 x 03650000)]
    0 x 03224400 JavaThread cmdlet-3 LiveConnect Worker Thread"[_thread_blocked, id = 4544, stack (0 x 04420000, 0 x 04470000)]
    0x0324e000 JavaThread ' browser side object cleanup thread "[_thread_blocked, id = 3276, stack(0x04380000,0x043d0000)]
    0 x 03247000 JavaThread 'Feed icon bar State Windows' [_thread_in_native, id = 3100, stack (0x037e0000, 0 x 03830000)]
    0 x 03242000 JavaThread "CacheCleanUpThread" demon [_thread_blocked, id = 2296, stack(0x03790000,0x037e0000)]
    0x0321e000 'CacheMemoryCleanUpThread' demon JavaThread [_thread_blocked, id = 2464, stack (0 x 03740000, 0 x 03790000)]
    0x03217c00 JavaThread 'SysExecutionTheadCreator' demon [_thread_blocked, id = 804, stack (0x036a0000, 0x036f0000)]
    JavaThread 0x00ca0400 "thread of Heartbeat Java plug-in" [_thread_blocked, id = 1204, stack (0 x 03400000, 0 x 03450000)]
    0x00cef800 JavaThread "AWT-EventQueue-0" [_thread_blocked, id = 2052, stack(0x03650000,0x036a0000)]
    -Online 0x00caec00 JavaThread "AWT-Windows" daemon [_thread_in_native, id = 3788, stack(0x03550000,0x035a0000)]
    0x00cad400 JavaThread "AWT-stop" [_thread_blocked, id = 3512, stack (0 x 03500000, 0 x 03550000)]
    0x00cac400 JavaThread "Shredder Java2D" demon [_thread_blocked, id = 3572, stack (0x034a0000, 0x034f0000)]
    JavaThread 0x00c85400 "Java plug-in - Pipe Worker Thread (Client side) ' daemon [_thread_in_native, id = 3752, stack(0x03450000,0x034a0000)]
    JavaThread 'Timer-0' 0x00c9e800 [_thread_blocked, id = 3756, stack(0x01190000,0x011e0000)]
    0x00ca3800 'traceMsgQueueThread' demon JavaThread [_thread_blocked, id = 3660, stack (01100000 0 x, 0 x 01150000)]
    JavaThread "Low memory detector" 0x00c59000 demon [_thread_blocked, id = 3332, stack (0x00ed0000, 0x00f20000)]
    JavaThread "CompilerThread0 C1" demon 0x00c53000 [_thread_blocked, id = 3320, stack (0x00e80000, 0x00ed0000)]
    JavaThread "Listener set" 0x00c51400 demon [_thread_blocked, id = 3732, stack (0x00e30000, 0x00e80000)]
    JavaThread 'Dispatcher of Signal' demon 0x00c50000 [_thread_blocked, id = 2000, stack (0x00de0000, 0x00e30000)]
    0x00c4c800 JavaThread 'Finalizer' daemon [_thread_blocked, id = 2376, stack (0x00d90000, 0x00de0000)]
    0x00c47c00 JavaThread "Reference Handler" daemon [_thread_blocked, id = 2840, stack (0x00d40000, 0x00d90000)]
    0 x 00398000 'hand' JavaThread [_thread_blocked, id = 1656, stack(0x00980000,0x009d0000)]

    Other topics:
    0x00c0bc00 VMThread [stack: 0x00cf0000, 0x00d40000] [id = 1736]
    0x00c63c00 WatcherThread [stack: 0x00f20000, 0x00f70000] [id = 3992]

    VM status: not to the point of restoration (normal execution)

    VM Mutex/monitor currently owned by thread: None

    Bunch
    def generation total 9216K, used 5704K [0x2a790000, 0x2b180000, 0x2d230000)
    Eden space K 8256, 65% have used [0x2a790000, 0x2acd6338, 0x2afa0000)
    Since space 960K, 31% used [0x2b090000, 0x2b0dbfd8, 0x2b180000)
    960K-space, 0% used [0x2afa0000, 0x2afa0000, 0x2b090000)
    tenure 20200 km total generation, used 17868K [0x2d230000, 0x2e5ea000, 0 x 32790000)
    20200K-space, 88% have used [0x2e3a3148, 0x2e3a3200, 0x2d230000, 0x2e5ea000)
    compaction perm gen total 12288K, used 5239K [0 x 32790000, 0 x 33390000, 0 x 36790000)
    12288K-space, 42 percent have used [0x32cadfc8, 0x32cae000, 0 x 32790000, 0 x 33390000)
    RO space 10240 K, 51% have used [0x36cbdff8, 0x36cbe000, 0 x 36790000, 0 x 37190000)
    RW space 12288K, 55% used [(0x3782c208, 0x3782c400, 0x37190000, 0x37d90000)]

    Hiding code [0 x 01200000, 0 x 01540000, 0 x 03200000)
    total_blobs = 1944 nmethods = 1691 cards = 187 free_code_cache = largest_free_block 30160448 = 192

    Dynamic libraries:
    0x00400000 - 0 x 00424000 C:\Program Files\Java\jre6\bin\java.exe
    0x7c900000 - 0x7c9b2000 C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f6000 C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f03000 C:\WINDOWS\system32\RPCRT4.dll
    0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
    0x5cb70000 - 0x5cb96000 C:\WINDOWS\system32\ShimEng.dll
    0 x 71590000 - 0 x 71609000 C:\WINDOWS\AppPatch\AcLayers.DLL
    0x7e410000 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f59000 C:\WINDOWS\system32\GDI32.dll
    0x7c9c0000 - 0x7d1d7000 C:\WINDOWS\system32\SHELL32.dll
    0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll
    0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
    0x774e0000 - 0x7761e000 C:\WINDOWS\system32\ole32.dll
    0x769c0000 - 0x76a74000 C:\WINDOWS\system32\USERENV.dll
    0 x 73000000 - 0 x 73026000 C:\WINDOWS\system32\WINSPOOL. DRV
    0 x 76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32. DLL
    0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\comctl32.dll
    0x7c340000 - C:\Program Files\Java\jre6\bin\msvcr71.dll 0x7c396000
    0x6d7f0000 - C:\Program Files\Java\jre6\bin\client\jvm.dll 0x6da9f000
    0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
    0x6d7a0000 - C:\Program Files\Java\jre6\bin\verify.dll 0x6d7ac000
    0x6d320000 - C:\Program Files\Java\jre6\bin\java.dll 0x6d33f000
    0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI. DLL
    0x6d7e0000 - C:\Program Files\Java\jre6\bin\zip.dll 0x6d7ef000
    0x6d420000 - C:\Program Files\Java\jre6\bin\jp2native.dll 0x6d426000
    0x6d1d0000 - C:\Program Files\Java\jre6\bin\deploy.dll 0x6d1e3000
    0x77a80000 - 0x77b15000 C:\WINDOWS\system32\CRYPT32.dll
    0x77b20000 - 0x77b32000 C:\WINDOWS\system32\MSASN1.dll
    0 x 77120000 - 0x771ab000 C:\WINDOWS\system32\OLEAUT32.dll
    0x3d930000 - 0x3da16000 C:\WINDOWS\system32\WININET.dll
    0x00f70000 - 0x00f79000-C:\WINDOWS\system32\Normaliz.dll
    0 x 78130000 - 0 x 78263000 C:\WINDOWS\system32\urlmon.dll
    0x3dfd0000 - 0x3e1b9000 C:\WINDOWS\system32\iertutil.dll
    0x6d6a0000 - C:\Program Files\Java\jre6\bin\regutils.dll 0x6d6e6000
    0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
    0x6d600000 - C:\Program Files\Java\jre6\bin\net.dll 0x6d613000
    0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
    0x6d620000 - C:\Program Files\Java\jre6\bin\nio.dll 0x6d629000
    0x6d000000 - C:\Program Files\Java\jre6\bin\awt.dll 0x6d14b000
    0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\comctl32.dll
    0 x 74720000 - 0x7476c000 C:\WINDOWS\system32\MSCTF.dll
    0x77b40000 - 0x77b62000 C:\WINDOWS\system32\apphelp.dll
    0x755c0000 - 0x755ee000 C:\WINDOWS\system32\msctfime.ime
    0x6d230000 - C:\Program Files\Java\jre6\bin\fontmanager.dll 0x6d27f000
    0x71a50000 - 0x71a8f000 C:\WINDOWS\System32\mswsock.dll
    0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
    0x76d60000 - 0x76d79000 C:\WINDOWS\system32\iphlpapi.dll
    0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
    0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
    0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
    0x10000000 - 0x1001f000 C:\WINDOWS\system32\iavlsp.dll
    0 x 77690000 - 0x776b1000 C:\WINDOWS\system32\NTMARTA. DLL
    0x71bf0000 - 0x71c03000 C:\WINDOWS\system32\SAMLIB.dll
    0x662b0000 - 0 x 66308000 C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
    68000000 0 x - 0 x 68036000 C:\WINDOWS\system32\rsaenh.dll
    0x5b860000 - 0x5b8b5000 C:\WINDOWS\system32\netapi32.dll
    0x6d790000 - C:\Program Files\Java\jre6\bin\unpack.dll 0x6d79f000
    0x6d510000 - C:\Program Files\Java\jre6\bin\jsound.dll 0x6d535000
    0x6d540000 - C:\Program Files\Java\jre6\bin\jsoundds.dll 0x6d548000
    0x73f10000 - 0x73f6c000 C:\WINDOWS\system32\DSOUND.dll
    0x6d1a0000 - C:\Program Files\Java\jre6\bin\dcpr.dll 0x6d1c3000
    0x76c30000 - 0x76c5e000 C:\WINDOWS\system32\WINTRUST.dll
    0x76c90000 - 0x76cb8000 C:\WINDOWS\system32\IMAGEHLP.dll
    0x72d20000 - 0x72d29000 C:\WINDOWS\system32\wdmaud.drv
    0x72d10000 - 0x72d18000 C:\WINDOWS\system32\msacm32.drv
    0x77be0000 - 0x77bf5000 C:\WINDOWS\system32\MSACM32.dll
    0x77bd0000 - 0x77bd7000 C:\WINDOWS\system32\midimap.dll
    0x73ee0000 - 0x73ee4000 C:\WINDOWS\system32\KsUser.dll
    0x6d440000 - C:\Program Files\Java\jre6\bin\jpeg.dll 0x6d465000

    VM Arguments:
    jvm_args :-D__jvm_launched = 4409882789 - Xbootclasspath/a:C:\PROGRA~1\Java\jre6\lib\deploy.jar; C:\Progra~1\Java\jre6\lib\javaws.jar; C:\Progra~1\Java\jre6\lib\plugin.jar-Dsun.awt.warmup=true-Xmx128m
    java_command: sun.plugin2.main.client.PluginMain write_pipe_name = jpi2_pid2736_pipe3, read_pipe_name = jpi2_pid2736_pipe2
    Type of launcher: SUN_STANDARD

    Environment variables:
    Path = c: 9.0\Reader\plug_ins; C:\Program 9.0\Reader\ Adobe. C:\Program may Explorer; C:\Windows\System32; C:\WINDOWS; C:\WINDOWS\System32\Wbem; C:\Windows\system32\WindowsPowerShell\v1.0; C:\PROGRA~1\COMMON~1\MUVEET~1\030625; C:\Program 9.0\Reader\plug_ins\test_tools Adobe
    USERNAME = administrator
    OS = Windows_NT
    PROCESSOR_IDENTIFIER = x 86 Family 15 Model 4 Stepping 1, GenuineIntel

    ---------------  S Y S T E M  ---------------

    OS: Windows XP Build 2600 Service Pack 3

    CPU:total 2 (1 cores per processor, 2 threads by heart) family 15 model 4 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht

    Memory: 4 k page, physical 1038184 k (432152 k free), Exchange 2498512 k (1810068 k free)

    vm_info: Java hotspot Client VM (20, 1 - b02) for JRE windows - x 86 (1.6.0_26 - b03), built on May 4, 2011 00:50:59 by "java_re" with MS VC ++ 7.1 (VS2003)

    time: Wed Jul 27 10:08:30 2011
    elapsed time: 430 seconds

    Hi CarmenK,

    I recommend you contact the Sun Microsystems Java support & get help support professionals.

    http://www.Java.com/en/download/support.jsp


    Reference:
    Java Help Center

    Hope the helps of information.

  • Mixture of several languages in a single application

    Hello

    I am trying to port my app for BlackBerry, but I'm having trouble with fonts. The application combines a number of different languages in the same user interface, for example, a list of languages in a particular language, but only one language per field. A number of languages appear as black filled boxes, which I understand other positions that means that the police does not exist on the device for these characters.

    I could provide the fonts (probably by their packaging with my application, then by loading with FontManager.load ()), but since I have a large number of languages, they would be contrary to the 60 k limit described in the API.

    I apologize for the open question, but what is my best approach? Is it still possible? If not, is there a set of languages that can be displayed on all the basic devices?

    Now, I agree limit me 6 API, but ideally, I'd like to support devices back to API 5.

    Thank you

    Garret

    "When this larger limit might ask?

    If you look at the doc, there are two methods of loading of a font by name and stream.  If you load as a stream of font size is limited to 90K.  By name - 60 K.  Which surprises me because if you put fonts in your Application, you can convert it to a stream by using this:

    http://supportforums.BlackBerry.com/T5/Java-development/add-plain-text-or-binary-files-to-an-Applica...

    I missed this initially as well and someone gave me this put! See here:

    http://supportforums.BlackBerry.com/T5/Java-development/acceptable-TTF-fonts-for-OS-5-0/m-p/537234#M...

    Edit corrected link.

  • Point culminating MenuItem - police-

    Hi all

    I want to use a font that is personalized for each text of my application.

    At the beginning of the application, I use FontManager.getInstance ().setApplicationFont(Font f); and it work pretty weel, except for one thing.

    My items menu do not use my fonts when they are highlighted. How to move on this issue?

    On this forum I found several thread on the same topic, but no work around has been given.

    I'm on API 5.0.

    Thank you for your help.

    You can try http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/ui/component/Menu.html#setFont...
    Maybe it helps

  • Import fonts in 4.6

    Hi all!

    I'm programming in 4.6 and I want to import a custom font.

    Is this possible?

    I saw the FontManager class in 5.0, but it does not exist in 4.6...

    Thank you all,

    Albert

    None

  • Installation of fonts by program

    Hello
    In BlackBerry OS, it was possible to install fonts programmatically, by using the net.rim.device.api.ui.FontManager class.
    Is it possible to do the same thing for Tablet OS

    Install and use a police custom in Java of BlackBerry application
    http://docs.BlackBerry.com/en/develope...

    Thank you

    With air, we usually incorporate the police in our application.

    The exact method dependis on if you use Flash Builder or Flash Pro to develop your application.

    For Flash Pro, see:

    http://help.Adobe.com/en_US/Flash/CS/using/WSb03e830bd6f770ee21a3597d124daee0526-8000.html

    or http://tv.adobe.com/watch/adc-presents/font-embedding-in-flash-professional-cs5/

    For Flash Builder, see:

    http://help.Adobe.com/en_US/Flex/mobileapps/WS19f279b149e7481c6a9f451212b87fe7e87-8000.html

    and

    http://help.Adobe.com/en_US/Flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7f5f.html

  • 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.

  • How to apply the font to Yes/No confirmation dialog box?

    Hello everyone,

    Every time I call it "Dialog.ask (...)", it will appear a dialog box with a default font.

    I would replace the provided default font.

    Can someone please suggest a few ideas...

    Thanks in advance...

    Vinay...

    The FontManager allows you to tune your application policies:

    http://www.BlackBerry.com/developers/docs/5.0.0api/NET/rim/device/API/UI/FontManager.html#setApplica...

    If this does not work, try the same with system fonts:

    http://www.BlackBerry.com/developers/docs/5.0.0api/NET/rim/device/API/UI/FontManager.html#setSystemF...

    E.

  • 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.

  • Fonts ttf acceptable for OS 5.0

    I managed to add and use a ttf are with OS 5.0, following the documentation here:

    http://docs.BlackBerry.com/en/developers/deliverables/11958/Load_and_use_a_custom_font_899948_11.jsp

    However I just wondered if there was more information on what is and is not acceptable.  With a font, I tried, I had

    FontManager.EXCEEDS_LIMIT

    but apparently not all information limit has been exceeded.

    I looked and not found anything this is a more detailed description of what makes an acceptable ttf font (or not), but I hope that someone else has and can tell me or point me to the documentation...

    Thank you.

    BTW, there is a bug in the sample:

    Melting of FontFamily = FontFamily.forName ("Charming");

    should be

    Melting of FontFamily = FontFamily.forName ("MyFont");

    Look at the documentation of FontManager.load (...). It says that " FontManager.EXCEEDS_LIMIT if the data of fonts exceeds 90 k size."

  • Custom bitmap focus problem with toolbar

    Hi all

    I'm new development of BB.

    I have screen with the title bar and after a toolbar customized

    The custom toolbar contains 3 bitmaps in the side chain and the left text right.

    Logo 'text'---> title bar

    Image1 image2, image3 "screenName"---> toolbar custom

    ListField

    Three images are created using the bitmap.

    I get the focus on the full range.

    But I want to focus on the first image, image1 when the application runs.

    If the user navigates the screen using the keyboard, change of focus to the next image, which is image2 and so on.

    How can I do that.

    I use the Blackberry API 4.2.1

    My current code for the toolbar is like that

    package com.pebbletalk.blackberry.ui;
    
    import com.pebbletalk.blackberry.defines.PTDefines;
    import com.pebbletalk.blackberry.utils.CustomFont;
    
    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.system.Display;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.component.BitmapField;
    
    public class ToolBar extends Field implements DrawStyle
    {
        private int fieldWidth;
        private int fieldHeight;
        private int backgroundColor;
        private String toolBarName = "";
    
        private Bitmap homeIcon = Bitmap.getBitmapResource("go-home-1_16x16.png");
        private Bitmap searchIcon = Bitmap.getBitmapResource("search-1_16x16.png");
        private Bitmap refreshIcon = Bitmap.getBitmapResource("reload-1_16x16.png");
    
        public ToolBar(String toolbarName)
        {
            super(Field.FOCUSABLE);
            fieldHeight = Display.getHeight()/10;
            fieldWidth = Display.getWidth();
    
            // Setting background color to white
            backgroundColor = Color.BLACK;
    
            toolBarName = toolbarName;
    
        }
    
        public Bitmap getHomeIcon() {
            return homeIcon;
        }
    
        public int getPreferredHeight()
        {
            return fieldHeight;
        }
    
        public int getPreferredWidth()
        {
            return fieldWidth;
        }
    
        protected void layout(int arg0, int arg1)
        {
            setExtent(getPreferredWidth(), getPreferredHeight());
        }
    
        protected void paint(Graphics graphics)
        {
            int height = this.getPreferredHeight();
            int width = this.getPreferredWidth();
    
            int left = this.getLeft();
            int top = this.getTop();
    
            graphics.setColor(backgroundColor);
            graphics.fillRect(0, 0, width, height);
    
            //graphics.drawBitmap(left, top, width, height, homeIcon, 0, 0);
            graphics.drawBitmap(left, 5, width, height, homeIcon, 0, 0);
            //int currentX = graphics.getTranslateX();
            //int currentY = graphics.getTranslateY();
            int homeIconWidth = homeIcon.getWidth() + 5;
            graphics.drawBitmap(homeIconWidth, 5, width, height, searchIcon, 0, 0);
            int searchIconWidth = homeIconWidth + searchIcon.getWidth() + 5;
            graphics.drawBitmap(searchIconWidth, 5, width, height, refreshIcon, 0, 0);
            int refreshIconWidth = searchIconWidth + refreshIcon.getWidth() + 5;
    
            CustomFont titleFont = new CustomFont(Defines.TOOLBAR_DASHBOARD_TITLE_FONT_FACE, Defines.TOOLBAR_DASHBOARD_TITLE_FONT_SIZE, Defines.TOOLBAR_DASHBOARD_TITLE_FONT_STYLE);
            graphics.setFont(titleFont.changeFont());
    
            Font currentFont = graphics.getFont();
            int textLength = currentFont.getAdvance(toolBarName, 0, toolBarName.length());
            textLength += 5;
            System.out.println("width : "+ width);
            System.out.println("refreshIconWidth : "+ refreshIconWidth);
            System.out.println("textLength : "+ textLength);
            int remainingWidth = width - refreshIconWidth;
            System.out.println("remainingWidth : "+ remainingWidth);
            int startPosition = remainingWidth - textLength;
            System.out.println("startPosition : "+ startPosition);
            int newX = refreshIconWidth + startPosition;
            System.out.println("newX : "+ newX);
            //int xPosition = width - refreshIconWidth;
            //System.out.println("tool x : "+ xPosition);
    
            graphics.setColor(PTDefines.TOOLBAR_DASHBOARD_TITLE_COLOR);
            graphics.drawText(toolBarName, newX, 5, (DrawStyle.RIGHT | DrawStyle.LEADING) );
        }
    }
    

    and my toolbarScreen code is

    MainScreen mainScreen = new MainScreen(Screen.NO_VERTICAL_SCROLL);
    
            //MainScreen mainScreen = new MainScreen();
    
            // add custom title bar
            mainScreen.add(titleBar);
    
            VerticalFieldManager verticalFieldManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR)
            {
                public void paint(Graphics graphics)
                {
                    graphics.setBackgroundColor(Color.WHITE);
                    graphics.clear();
                    super.paint(graphics);
                }
                protected void sublayout(int maxWidth, int maxHeight)
                {
                    int displayWidth = Display.getWidth();
                    int displayHeight = Display.getHeight() - titleBarHeight;
                    super.sublayout(displayWidth, displayHeight);
                    setExtent(displayWidth, displayHeight);
    
                }
            };
    
            //now add everything in the verticalManager
    
            // add custom toolbar
            mainScreen.add(toolBar);
            mainScreen.add(new SeparatorField());
    

    Please help me to solve my problem.

    Remember that the BlackBerry smartphone focuses on a field, not a picture.  Your toolbar is only a field, so one thing to focus on which is the Blackberry's.

    You have two choices:

    (a) change your toolbar to be a Manager and have several fields that it contains.  You can make a HorizontalFieldManager and assuming that the other things are set correctly (in particular the width of the fields that you add) this will do what you want.

    (b) substitute events in development movement in your toolbar to make it appear focus is moved.

    I think the second option is more difficult, especially when you start to take the touch screen into consideration.  However, with the second option, you get a much easier control over the look of your toolbar.  But I'd go with the first one, as I think it is easier for new programmers.  Initially, I wouldn't get to hung up on the appearance of the toolbar, get it works the way you want and then try to get it looking right.

  • 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