Using external fonts in swing

Hello, I am a newbie and I am learning java... my question is can we use other than system fonts in swing UI? like i just downloaded a ttf format font http://www.fontpalace.com/font-download/Champignon+Script/ and now i want all my labels/text-fields to be displayed in this style? is it possible.. plss help

http://www.ritter.biz/en/programming/java/14-wie-verwende-ich-eigene-schriftarten-in-meinen-java-anwendungen
or
http://www.java2s.com/Code/Java/2D-Graphics-GUI/Loadfontfromttffile.htm

Similar Messages

  • How can I use two fonts in swing components?

    I want to implement a project. When a part of the JMenuBar, JButton or other swing components' text is English, I use Tahoma font, and other of these components' text is Chinese, I use SimSun font, just like the Chinese Windows OS. How can I implement it??
    Thanks!!

    Ooh, thats a tricky one. I'm not sure whether you can do that, but maybe someone else with more experienced can correct me.
    You'll probably have to create your own custom JMenu that displays two labels, one for English and one for the Chinese parts?

  • Embedding and using external fonts.

    I'm using Flash CS4.  I'm trying to load and embed an external font.  The main problem I'm having is that I need to import more than just latin 1.  I need many special characters imported as well.  Because of this, using Flash CS4's create new font from the library is not an option.  I'm using Verdana, so I know the font has all the characters I need.
    So what I need to do is create an external swf that holds the font.  Then I need to import and use the font.  Unfortunately, I've found way too many ways online that work but don't fit my needs.
    Any help is appreciated.

    1. Embedding
    a. You can embed font in Flash IDE by creating Font as a library asset and then compile this swf. There are tons of help available on Internet.
    b. If you use Flash CS5 or compilers that utilizes Flex SDK, you can create class like below and compile it into a swf:
    package 
         import flash.display.Sprite;
         public class FontLibrary extends Sprite
              [Embed(systemFont="Verdana", fontName="_verdana", mimeType="application/x-font", advancedAntiAliasing="true", fontStyle="normal",unicodeRange="U+0020-U+007E")]
              public static var Normal:Class;
              [Embed(systemFont="Verdana", fontName="_verdana", mimeType="application/x-font", advancedAntiAliasing="true", fontStyle="normal", fontWeight="bold",unicodeRange="U+0020-U+007E")]
              public static var Bold:Class;
              [Embed(systemFont="Verdana", fontName="_verdana", mimeType="application/x-font", advancedAntiAliasing="true", fontStyle="italic", fontWeight="normal",unicodeRange="U+0020-U+007E")]
              public static var Italic:Class;
              [Embed(systemFont="Verdana", fontName="_verdana", mimeType="application/x-font", advancedAntiAliasing="true", fontStyle="italic", fontWeight="bold",unicodeRange="U+0020-U+007E")]
              public static var ItalicBold:Class;
    No matter what way you choose - you will have font available the external swf.
    Try to load external swf into current domain. When you load the swf there is no much to do. Once swf is loaded - fonts should be available throughout application.
    To use the font - just pass its name into TextFiled instance's TextFormat. WIth the example above:
    myTextFormat.font = "_verdana";
    Documentation for TextFormat:
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextFormat.html
    To see available fonts you can use the following:
    var allFonts:Array = Font.enumerateFonts(false);
    allFonts.sortOn("fontName", Array.CASEINSENSITIVE);     
    for (var i:int = 0; i < allFonts.length; i++)
         trace(allFonts[i].fontName);

  • How to Use External Fonts

    Hi All,
    How can I use extrnal fonts i.e (Windows\Fonts) in my PDF Reports? I'm using APEX 3.01 to print my reports to PDF files. Arabic Characters Appers like ????.
    Same report Appears OK when I select HTML, Excel, word as my print file.
    Thanks,
    Ribhi

    I have successfully used Russian Fonts in LV 7. There are two ways to go about this. The first way is to use an ini or config file to do the conversion for you. This way you can type russian into the file and read in the proper strings. The second way is to take the integer value of the character and type cast it to a string. You must have the russian font installed first before this will work. My example used the alphabet and converted it to Russian. I used the ER Univers 1251 font and used a for loop that will run 32 times and added the iteration terminal with the value of 192 for lower case and type cased each value into a string from an integer. For upper case letters add the iteration terminal with 224. This will display the Russian Alphabet. Hope this h
    elps.
    BJD1613
    Lead Test Tools Development Engineer
    Philips Respironics
    Certified LV Architect / Instructor

  • Using external font file in a  pdf document

    Hello,
    I try to create programmatically a pdf file which whould use an external ttf file. Right now my soft generates something like this:
    3 0 obj
    <</Type /Pages/Count 1/Kids[5 0 R ]/Resources<</Font<</F1 7 0 R>>>>>>
    endobj
    7 0 obj
    <</Type /Font/Subtype /Type0/Encoding /Identity-H/BaseFont /TimesNewRomanPSMT/DescendantFonts [8 0 R]>>
    endobj
    8 0 obj
    <</Type /Font/Subtype /CIDFontType2/BaseFont /TimesNewRomanPSMT/CIDToGIDMap /Identity/FontDescriptor 9 0 R/DW 1000/W [1[722]2[610]3[443]4[389]5[277]0[777]]/CIDSystemInfo <</Ordering (Identity)/Registry (Adobe)/Supplement 0>>>>
    endobj
    9 0 obj
    <</Type /FontDescriptor/FontName /TimesNewRomanPSMT/StemV 80/Descent -216/Ascent 891/CapHeight 662/Flags 32/ItalicAngle 0/FontBBox [-568 -306 2000 1007]/FontFile2 10 0 R>>
    endobj
    10 0 obj
    <</Length 13 0 R/Length1 13 0 R/Filter /FlateDecode /F times.ttf>>stream
    endstream
    endobj
    13 0 obj
    836380
    endobj
    The times.ttf is in the same folder as a pdf. The document opens without error though the rendered text is completely different from that it suppose to be. I didn't find a good exemple in PDF spec and probably I intrepret it in a wrong way. I would be very thankful for any clue what is wrong in my code or a sample how could it be done correctly.
    thanks in advance

    From the snippet you posted, it appears that you didn't properly write out the value of the /F key in the stream. 
    However, that's just one of the reasons this won't work as you are expecting.  Even after you fix that, you should know that Adobe Acrobat & Reader have their support for external streams turned OFF by default (for security reasons) and that other viewers don't even support it at all.
    Is there a reason you don't wish to embed the font?  Or use standard referencing?

  • Embedding and using external fonts in Flash CS5

    I just upgraded to Flash CS5.  Font embedding is entirely different than it was in CS4.  I've been looking for examples online but none seem to show me a solution that matches what I need.
    In the project I'm working on, code changes the font a text box uses based on region and language.  To keep file size down I created separate swf files with the fonts embedded.  That way I only download the font I need.  The way I did this and the code I used in CS4 doesn't seem to work anymore.  Can someone please point me to a tutorial on this.
    Thanks

    OK, maybe you can help me figure out what I'm doing wrong.  Below is the code I'm using.
    LOADING THE FONT
    Font SWFs:
    I'm trying something new with CS5.  To create a swf with the font I need I'm creating a library symbol of the font with all the characters in it.  Titled it "Verdana".  I've also turned on Export for ActionScript and given the font a unique class name (VerdanaFont).  Then of course publish the swf, name it Verdana.swf, and put it in the correct location.  Does doing it this way automatically register the font?
    The Loader code:
    private function LoadFont()
    var fontPath:String = "assets/fonts/Verdana.swf";
    var fontLoader:Loader = new Loader();
    fontLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, createTextBox);
    fontLoader.load(new URLRequest(fontPath));
    The TextBox code:
    private function createTextBox()
    var tf:TextFormat = new TextFormat;
    tf.font = "Verdana";
    tf.align = "left";
    var textBox:TextField = new TextField;
    textBox.embedFonts = true;
    textBox.selectable = false;
    textBox.htmlText = "This is test text";
    textBox.setTextFormat(tf);
    stage.addChild(textBox);

  • Error while fetching data from OWB Client using External Table.

    Dear All,
    I am using Oracle Warehouse Builder 11g & Oracle 10gR2 as repository database on Windows 2000 Server.
    I facing some issue in fetching data from a Flat File using external table from OWB Client.
    I have perform all the steps without any error but when I try to view the data, I got the following error.
    ======================================
    RA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file expense_categories.csv in SOURCE_LOCATION not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    java.sql.SQLException: ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file expense_categories.csv in SOURCE_LOCATION not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)
         at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:774)
         at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:849)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
         at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1377)
         at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:386)
         at oracle.wh.ui.owbcommon.QueryResult.<init>(QueryResult.java:18)
         at oracle.wh.ui.owbcommon.dataviewer.relational.OracleQueryResult.<init>(OracleDVTableModel.java:48)
         at oracle.wh.ui.owbcommon.dataviewer.relational.OracleDVTableModel.doFetch(OracleDVTableModel.java:20)
         at oracle.wh.ui.owbcommon.dataviewer.RDVTableModel.fetch(RDVTableModel.java:46)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerPanel$1.actionPerformed(BaseDataViewerPanel.java:218)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:282)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerPanel.executeQuery(BaseDataViewerPanel.java:493)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerEditor.init(BaseDataViewerEditor.java:116)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerEditor.<init>(BaseDataViewerEditor.java:58)
         at oracle.wh.ui.owbcommon.dataviewer.relational.DataViewerEditor.<init>(DataViewerEditor.java:16)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at oracle.wh.ui.owbcommon.IdeUtils._tryLaunchEditorByClass(IdeUtils.java:1412)
         at oracle.wh.ui.owbcommon.IdeUtils._doLaunchEditor(IdeUtils.java:1349)
         at oracle.wh.ui.owbcommon.IdeUtils._doLaunchEditor(IdeUtils.java:1367)
         at oracle.wh.ui.owbcommon.IdeUtils.showDataViewer(IdeUtils.java:869)
         at oracle.wh.ui.owbcommon.IdeUtils.showDataViewer(IdeUtils.java:856)
         at oracle.wh.ui.console.commands.DataViewerCmd.performAction(DataViewerCmd.java:19)
         at oracle.wh.ui.console.commands.TreeMenuHandler$1.run(TreeMenuHandler.java:188)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    ===========================
    In the error it is showing that file expense_categories.csv in SOURCE_LOCATION not found but I am 100% sure that file is very much there.
    Is anybody face the same issue?
    Do we need to configure something before loading data from a flat file from OWB Client?
    Any help would higly appreciable.
    Regards,
    Manmohan Sharma

    Hi Detlef / Gowtham,
    Now I am able to fetch data from flat files from OWB Server as well as OWB Client.
    One way I have achieved as suggested by you
    1) Creating location on the OWB Client
    2) Samples the files at client
    3) Created & Configured external table
    4) Copy all flat files on OWB Server
    5) Updated the location which I created at the client.
    Other way
    1) Creating location on the OWB Client
    2) Samples the files at client
    3) Created & Configured external table
    4) Copied flat files on the sever in same drive & directory . like if my all flat files are on C:\data at OWB Client then I copied flat file C:\data on the OWB Server. But this is feasible for Non-Windows.
    Hence my problem solved.
    Thanks a lot.
    Regards,
    Manmohan

  • [ps3mediaserver][pms-svn][AUR] No sound while using external subtitles

    Greetings everyone,
    I am experiencing some weird behavior while using External Subtitles, e.g. Playing an AVI file with PS3MediaServer works fine but playing the very same AVI file with external subtitles gives me the video with subtitles and no sound.
    My Server configuration is as follows :
    Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz
    RAM :2048 Mo
    OS : Archlinux 2.6.37-ARCH #1 SMP PREEMPT Tue Mar 8 08:34:35 CET 2011 x86_64
    Target : Playstation 3 Slim, firmware 3.60
    Here are the various Sofware versions I use :
    PMS version I am using is PS3 Media Server 1.21.0 (built from AUR, PKG: pms-svn)
    Java version is Java: 1.6.0_22-Sun Microsystems Inc.
    MPlayer version is "MPlayer SVN-r32792-4.5.2 (C) 2000-2011 MPlayer Team" and so is "MEncoder SVN-r32792-4.5.2 (C) 2000-2011 MPlayer Team"
    TSMuxer version is "1.10.6-10"
    FFMpeg version is "FFmpeg version git-2611e52"
    The network configuration of the server is : 192.168.0.20, netmask 255.255.255.0 ; 100MBits Full Duplex (Wired)
    The network configuration of the Playstation 3 is : 192.168.0.15, netmask 255.255.255.0 ; Auto (Wired, no WiFi !)
    Both are linked on a 100MBits Switch : Playstation 3 <--> Switch 100 Mbits <--> PS3 Media Server
    My PMS.conf is :
    thumbnails = true
    language =
    prevents_sleep_mode = true
    folders = \/srv\/shares
    network_interface = eth0
    hide_empty_folders = true
    hide_media_library_folder = true
    hide_transcode_folder = true
    hide_enginenames = true
    enable_archive_browsing = false
    audio_thumbnails_method = 2
    mencoder_subfribidi = false
    mencoder_disablesubs = false
    autoloadsrt = true
    hostname =
    port = 5001
    thumbnail_seek_pos = 10
    nbcores = 4
    turbomode = true
    minimized = false
    hidevideosettings = false
    charsetencoding = 850
    engines = mencoder,avsmencoder,tsmuxer,mplayeraudio,ffmpegaudio,tsmuxeraudio,mencoderwebvideo,mplayervideodump,mplayerwebaudio,ffmpegdvrmsremux
    avisynth_convertfps = true
    avisynth_script = #AviSynth script is now fully customisable
    transcode_block_multiple_connections = false
    tsmuxer_forcefps = true
    tsmuxer_preremux_pcm = false
    tsmuxer_preremux_ac3 = false
    audiochannels = 2
    audiobitrate = 384
    maximumbitrate = 0
    skiploopfilter = false
    mencoder_fontconfig = false
    mencoder_font =
    mencoder_forcefps = false
    mencoder_usepcm = false
    mencoder_intelligent_sync = true
    mencoder_decode =
    mencoder_encode = keyint=1:vqscale=1:vqmin=2
    mencoder_nooutofsync = true
    # mencoder_audiolangs = fre,eng
    # mencoder_sublangs = fre,off;fr,off;eng,off;en,off
    mencoder_audiosublangs = fre,off;fr,off;eng,off;en,off
    mencoder_ass_scale = 1.0
    mencoder_ass_margin = 10
    mencoder_ass_outline = 1
    mencoder_ass_shadow = 1
    mencoder_noass_scale = 3
    mencoder_noass_subpos = 2
    mencoder_noass_blur = 1
    mencoder_noass_outline = 1
    mencoder_subcp = cp1252
    mencoder_ass = false
    mencoder_yadif = false
    mencoder_scaler = false
    mencoder_scalex = 0
    mencoder_scaley = 0
    ffmpeg = -g 1 -qscale 1 -qmin 2
    # The next value has to be chosen very carefully: to low = possible stuttering if the network is congested, but
    # to high causes the java heap to be to small. Check the -Xmx-setting in /opt/pms/PMS.sh and raise it to 1024M
    # or higher if you see unexplainable Out Of Memory-errors in the debug.log
    maxvideobuffer = 400
    use_mplayer_for_video_thumbs = false
    # The next value sorts your media files. 0 (default) = A-Z while 1 = Z-A
    sort_method =
    usecache = true
    forcetranscode=
    Here are the tests I have run :
    MediaInfo output
    General
    Complete name : test without subs.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    File size : 350 MiB
    Duration : 42mn 24s
    Overall bit rate : 1 153 Kbps
    Writing application : transcode-1.0.6
    Video
    ID : 0
    Format : MPEG-4 Visual
    Format profile : Advanced Simple@L5
    Format settings, BVOP : 2
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (H.263)
    Codec ID : XVID
    Codec ID/Hint : XviD
    Duration : 42mn 24s
    Bit rate : 978 Kbps
    Width : 624 pixels
    Height : 352 pixels
    Display aspect ratio : 16:9
    Frame rate : 23.976 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.186
    Stream size : 296 MiB (85%)
    Writing library : XviD 1.2.1 (UTC 2008-12-04)
    Audio
    ID : 1
    Format : MPEG Audio
    Format version : Version 1
    Format profile : Layer 3
    Mode : Joint stereo
    Codec ID : 55
    Codec ID/Hint : MP3
    Duration : 42mn 23s
    Bit rate mode : Variable
    Bit rate : 160 Kbps
    Channel(s) : 2 channels
    Sampling rate : 48.0 KHz
    Compression mode : Lossy
    Stream size : 49.4 MiB (14%)
    Alignment : Aligned on interleaves
    Interleave, duration : 24 ms (0.58 video frame)
    Writing library : LAME3.90.
    Encoding settings : -m j -V 4 -q 2 -lowpass 18 --abr 160
    And its very same but with external subtitles :
    -rw-r--r-- 1 svc-pms svc-pms 77159 Oct 12 12:57 test with subs.srt
    -rw-rw-r-- 1 svc-pms svc-pms 366711578 Oct 23 10:50 test with subs.avi
    MediaInfo output, just to acknowledge it is the same file, but with a different name
    General
    Complete name : test with subs.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    File size : 350 MiB
    Duration : 42mn 24s
    Overall bit rate : 1 153 Kbps
    Writing application : transcode-1.0.6
    Video
    ID : 0
    Format : MPEG-4 Visual
    Format profile : Advanced Simple@L5
    Format settings, BVOP : 2
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (H.263)
    Codec ID : XVID
    Codec ID/Hint : XviD
    Duration : 42mn 24s
    Bit rate : 978 Kbps
    Width : 624 pixels
    Height : 352 pixels
    Display aspect ratio : 16:9
    Frame rate : 23.976 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.186
    Stream size : 296 MiB (85%)
    Writing library : XviD 1.2.1 (UTC 2008-12-04)
    Audio
    ID : 1
    Format : MPEG Audio
    Format version : Version 1
    Format profile : Layer 3
    Mode : Joint stereo
    Codec ID : 55
    Codec ID/Hint : MP3
    Duration : 42mn 23s
    Bit rate mode : Variable
    Bit rate : 160 Kbps
    Channel(s) : 2 channels
    Sampling rate : 48.0 KHz
    Compression mode : Lossy
    Stream size : 49.4 MiB (14%)
    Alignment : Aligned on interleaves
    Interleave, duration : 24 ms (0.58 video frame)
    Writing library : LAME3.90.
    Encoding settings : -m j -V 4 -q 2 -lowpass 18 --abr 160
    A- I tried playing the AVI file without external subtitles and it is working fine. 
    /var/log/pms.log :
    GUI environment not available
    Switching to console mode
    [main] TRACE 06:17:02.228 Starting PS3 Media Server 1.21.0
    [main] TRACE 06:17:02.237 by shagrath / 2008-2011
    [main] TRACE 06:17:02.237 http://ps3mediaserver.org
    [main] TRACE 06:17:02.237 http://ps3mediaserver.blogspot.com
    [main] TRACE 06:17:02.238 http://code.google.com/p/ps3mediaserver
    [main] TRACE 06:17:02.238
    [main] TRACE 06:17:02.238 Java: 1.6.0_22-Sun Microsystems Inc.
    [main] TRACE 06:17:02.238 OS: Linux amd64 2.6.37-ARCH
    [main] TRACE 06:17:02.238 Encoding: UTF-8
    [main] TRACE 06:17:02.238 PMS.conf: /filers/fvEXT3-01/_applications_/opt/pms/PMS.conf
    [main] TRACE 06:17:02.238 Working directory: /filers/fvEXT3-01/_applications_/opt/pms
    [main] TRACE 06:17:02.245 Temp folder: /tmp/ps3mediaserver
    [main] TRACE 06:17:02.652 Loading configuration file: FreeboxHD.conf
    [main] TRACE 06:17:02.662 Loading configuration file: XBMC.conf
    [main] TRACE 06:17:02.666 Loading configuration file: FreecomMusicPal.conf
    [main] TRACE 06:17:02.669 Loading configuration file: XBOX360.conf
    [main] TRACE 06:17:02.685 Loading configuration file: PS3.conf
    [main] TRACE 06:17:02.705 Loading configuration file: Streamium.conf
    [main] TRACE 06:17:02.708 Loading configuration file: WDTVLive.conf
    [main] TRACE 06:17:02.710 Loading configuration file: N900.conf
    [main] TRACE 06:17:02.712 Loading configuration file: Philips.conf
    [main] TRACE 06:17:02.715 Loading configuration file: Bravia4500.conf
    [main] TRACE 06:17:02.718 Loading configuration file: WMP.conf
    [main] TRACE 06:17:02.720 Loading configuration file: Samsung.conf
    [main] TRACE 06:17:02.722 Loading configuration file: Bravia5500.conf
    [main] TRACE 06:17:02.724 Loading configuration file: Realtek.conf
    [main] TRACE 06:17:02.726 Loading configuration file: Kuro.conf
    [main] TRACE 06:17:02.729 Loading configuration file: Android.conf
    [main] TRACE 06:17:02.731 Loading configuration file: BraviaEX.conf
    [main] TRACE 06:17:02.734 Loading configuration file: PopcornHour.conf
    [main] TRACE 06:17:02.736 Checking font cache... launching simple instance of MPlayer... You may have to wait 60 seconds!
    [main] TRACE 06:17:04.173 Done!
    [main] TRACE 06:17:04.210 Loading plugins from /filers/fvEXT3-01/_applications_/opt/pms/plugins
    [main] TRACE 06:17:04.227 No plugins found
    [main] TRACE 06:17:04.257 Registering transcoding engine FFmpeg Audio
    [main] TRACE 06:17:04.300 Registering transcoding engine MEncoder
    [main] TRACE 06:17:04.300 Registering transcoding engine MPlayer Audio
    [main] TRACE 06:17:04.301 Registering transcoding engine MEncoder Web
    [main] TRACE 06:17:04.301 Registering transcoding engine MPlayer Video Dump
    [main] TRACE 06:17:04.301 Registering transcoding engine MPlayer Web
    [main] TRACE 06:17:04.303 Registering transcoding engine TsMuxer
    [main] TRACE 06:17:04.303 Registering transcoding engine Audio High Fidelity
    [main] TRACE 06:17:04.303 Registering transcoding engine VLC Audio Streaming
    [main] TRACE 06:17:04.304 Registering transcoding engine VLC Video Streaming
    [main] TRACE 06:17:04.304 Registering transcoding engine Raws Thumbnailer
    [main] TRACE 06:17:04.401 Scanning network interface eth0 / eth0
    [main] TRACE 06:17:04.403 Using address /192.168.0.20 found on network interface: name:eth0 (eth0) index: 2 addresses: /192.168.0.20;
    [main] TRACE 06:17:04.403 Created socket: /192.168.0.20:5001
    [main] TRACE 06:17:04.548 Using database located at : /filers/fvEXT3-01/_applications_/opt/pms/database
    [main] TRACE 06:17:04.930 A tiny media library admin interface is available at: http://192.168.0.20:5001/console/home
    [main] TRACE 06:17:05.001 Using the following UUID: d83f2e45-d8b8-3db7-b0ff-a6fc95ce046c
    [New I/O server worker #1-1] TRACE 06:17:08.787 Renderer Playstation 3 found on this address: /192.168.0.15
    [main] TRACE 06:17:09.902 It's ready! You should see the server appear on the XMB
    [New I/O server worker #1-1] TRACE 06:17:10.794 Renderer Playstation 3 has an estimated network speed of: 93 Mb/s
    /opt/pms/debug.log :
    available at : http://dpaste.org/774i/
    B - I tried playing the AVI file with external subtitles (SRT) and the file is playing with subtitles but no sound :-(
    /var/log/pms.log :
    GUI environment not available
    Switching to console mode
    [main] TRACE 06:20:24.967 Starting PS3 Media Server 1.21.0
    [main] TRACE 06:20:24.968 by shagrath / 2008-2011
    [main] TRACE 06:20:24.968 http://ps3mediaserver.org
    [main] TRACE 06:20:24.968 http://ps3mediaserver.blogspot.com
    [main] TRACE 06:20:24.968 http://code.google.com/p/ps3mediaserver
    [main] TRACE 06:20:24.969
    [main] TRACE 06:20:24.969 Java: 1.6.0_22-Sun Microsystems Inc.
    [main] TRACE 06:20:24.969 OS: Linux amd64 2.6.37-ARCH
    [main] TRACE 06:20:24.969 Encoding: UTF-8
    [main] TRACE 06:20:24.969 PMS.conf: /filers/fvEXT3-01/_applications_/opt/pms/PMS.conf
    [main] TRACE 06:20:24.969 Working directory: /filers/fvEXT3-01/_applications_/opt/pms
    [main] TRACE 06:20:24.973 Temp folder: /tmp/ps3mediaserver
    [main] TRACE 06:20:25.038 Loading configuration file: FreeboxHD.conf
    [main] TRACE 06:20:25.040 Loading configuration file: XBMC.conf
    [main] TRACE 06:20:25.041 Loading configuration file: FreecomMusicPal.conf
    [main] TRACE 06:20:25.044 Loading configuration file: XBOX360.conf
    [main] TRACE 06:20:25.047 Loading configuration file: PS3.conf
    [main] TRACE 06:20:25.055 Loading configuration file: Streamium.conf
    [main] TRACE 06:20:25.057 Loading configuration file: WDTVLive.conf
    [main] TRACE 06:20:25.059 Loading configuration file: N900.conf
    [main] TRACE 06:20:25.061 Loading configuration file: Philips.conf
    [main] TRACE 06:20:25.063 Loading configuration file: Bravia4500.conf
    [main] TRACE 06:20:25.065 Loading configuration file: WMP.conf
    [main] TRACE 06:20:25.068 Loading configuration file: Samsung.conf
    [main] TRACE 06:20:25.069 Loading configuration file: Bravia5500.conf
    [main] TRACE 06:20:25.071 Loading configuration file: Realtek.conf
    [main] TRACE 06:20:25.073 Loading configuration file: Kuro.conf
    [main] TRACE 06:20:25.076 Loading configuration file: Android.conf
    [main] TRACE 06:20:25.077 Loading configuration file: BraviaEX.conf
    [main] TRACE 06:20:25.080 Loading configuration file: PopcornHour.conf
    [main] TRACE 06:20:25.082 Checking font cache... launching simple instance of MPlayer... You may have to wait 60 seconds!
    [main] TRACE 06:20:25.144 Done!
    [main] TRACE 06:20:25.153 Loading plugins from /filers/fvEXT3-01/_applications_/opt/pms/plugins
    [main] TRACE 06:20:25.153 No plugins found
    [main] TRACE 06:20:25.160 Registering transcoding engine FFmpeg Audio
    [main] TRACE 06:20:25.166 Registering transcoding engine MEncoder
    [main] TRACE 06:20:25.167 Registering transcoding engine MPlayer Audio
    [main] TRACE 06:20:25.167 Registering transcoding engine MEncoder Web
    [main] TRACE 06:20:25.167 Registering transcoding engine MPlayer Video Dump
    [main] TRACE 06:20:25.168 Registering transcoding engine MPlayer Web
    [main] TRACE 06:20:25.169 Registering transcoding engine TsMuxer
    [main] TRACE 06:20:25.169 Registering transcoding engine Audio High Fidelity
    [main] TRACE 06:20:25.170 Registering transcoding engine VLC Audio Streaming
    [main] TRACE 06:20:25.170 Registering transcoding engine VLC Video Streaming
    [main] TRACE 06:20:25.170 Registering transcoding engine Raws Thumbnailer
    [main] TRACE 06:20:25.223 Scanning network interface eth0 / eth0
    [main] TRACE 06:20:25.224 Using address /192.168.0.20 found on network interface: name:eth0 (eth0) index: 2 addresses: /192.168.0.20;
    [main] TRACE 06:20:25.224 Created socket: /192.168.0.20:5001
    [main] TRACE 06:20:25.279 Using database located at : /filers/fvEXT3-01/_applications_/opt/pms/database
    [main] TRACE 06:20:26.010 A tiny media library admin interface is available at: http://192.168.0.20:5001/console/home
    [main] TRACE 06:20:26.017 Using the following UUID: d83f2e45-d8b8-3db7-b0ff-a6fc95ce046c
    [New I/O server worker #1-1] TRACE 06:20:28.867 Renderer Playstation 3 found on this address: /192.168.0.15
    [New I/O server worker #1-1] TRACE 06:20:30.872 Renderer Playstation 3 has an estimated network speed of: 93 Mb/s
    [main] TRACE 06:20:32.488 It's ready! You should see the server appear on the XMB
    [New I/O server worker #1-6] TRACE 06:20:56.875 Starting transcode/remux of test with subs.avi
    So, obviously here, the only thing which changes from before was that, this time, the PS3 Media Server did a transcode/remux of the file (for the subtitles to be streamed)
    /opt/pms/debug.log :
    available at : http://dpaste.org/6XMI/
    I have pasted the complete debug.log but I believe the problem is around this :
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Opened request handler on socket /192.168.0.15:64494 // Playstation 3
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Request: HTTP/1.0 : HEAD : get/0$0$4$0/test+with+subs.avi
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Received on socket: Accept-Encoding: identity
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Received on socket: Cache-Control: no-cache
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Received on socket: Connection: close
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Received on socket: Host: 192.168.0.20:5001
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Received on socket: User-Agent: PLAYSTATION 3
    [New I/O server worker #1-6] INFO 06:20:56.874 HTTP: get/0$0$4$0/test+with+subs.avi / 0-0
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Searching for objectId: 0$0$4$0 with children option: false
    [New I/O server worker #1-6] DEBUG 06:20:56.875 Asked stream chunk [0-0] timeseek: 0.0 of test with subs.avi and player MEncoder
    [New I/O server worker #1-6] TRACE 06:20:56.875 Starting transcode/remux of test with subs.avi
    [New I/O server worker #1-6] DEBUG 06:20:56.875 Looking for an audio track with lang: eng
    [New I/O server worker #1-6] DEBUG 06:20:56.883 Looking for an audio track with lang: fre
    [New I/O server worker #1-6] DEBUG 06:20:56.884 Looking for an audio track with lang: jpn
    [New I/O server worker #1-6] DEBUG 06:20:56.886 Looking for an audio track with lang: ger
    [New I/O server worker #1-6] DEBUG 06:20:56.887 Looking for an audio track with lang: und
    [New I/O server worker #1-6] DEBUG 06:20:56.888 Matched audio track: Audio: MP3 / lang: und / ID: 1
    [New I/O server worker #1-6] DEBUG 06:20:56.888 Search a match for: und with fre and off
    [New I/O server worker #1-6] DEBUG 06:20:56.889 Search a match for: und with fr and off
    [New I/O server worker #1-6] DEBUG 06:20:56.889 Search a match for: und with eng and off
    [New I/O server worker #1-6] DEBUG 06:20:56.890 Search a match for: und with en and off
    [New I/O server worker #1-6] DEBUG 06:20:56.891 Found subtitles track: Sub: SubRip / lang: und / ID: 100 / FILE: /srv/shares/test_with_sub/test with subs.srt
    [New I/O server worker #1-6] DEBUG 06:20:56.891 Found external file: /srv/shares/test_with_sub/test with subs.srt
    [New I/O server worker #1-6] DEBUG 06:20:56.892 channels=2
    [mkfifo] INFO 06:20:56.979 Starting mkfifo --mode=777 /tmp/ps3mediaserver/mencoder1300252856978
    [mkfifo] INFO 06:20:56.995 Unix process ID (mkfifo): 4390
    [mencoder] INFO 06:20:57.029 Starting mencoder -ss 0 -quiet /srv/shares/test_with_sub/test with subs.avi -quiet -quiet -oac lavc -of mpeg -quiet -quiet -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 2 -lavdopts debug=0:threads=4 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=256:threads=4:keyint=1:vqscale=1:vqmin=2 -spuaa 3 -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -quiet -quiet -sid 100 -quiet -quiet -ofps 24000/1001 -sub /srv/shares/test_with_sub/test with subs.srt -utf8 -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o /tmp/ps3mediaserver/mencoder1300252856978
    [mencoder] INFO 06:20:57.048 Reading pipe: /tmp/ps3mediaserver/mencoder1300252856978
    [mencoder] DEBUG 06:20:57.049 Opening file /tmp/ps3mediaserver/mencoder1300252856978 for reading...
    [New I/O server worker #1-6] DEBUG 06:20:57.129 Sleeping for 6000 milliseconds
    [mencoder] INFO 06:20:57.395 Attaching thread: mencoder
    [Timer-1] DEBUG 06:20:57.396 Buffered Space: 0 bytes / inputs: 0
    [mencoder] INFO 06:20:57.396 Unix process ID (mencoder): 4395
    [Thread-30] DEBUG 06:20:57.396 MEncoder SVN-r32792-4.5.2 (C) 2000-2011 MPlayer Team
    [Thread-30] DEBUG 06:20:57.397 161 audio & 351 video codecs
    [Thread-30] DEBUG 06:20:57.397 success: format: 0 data: 0x0 - 0x15db931a
    [Thread-30] DEBUG 06:20:57.397 AVI file format detected.
    [Thread-30] DEBUG 06:20:57.397 [aviheader] Video stream found, -vid 0
    [Thread-30] DEBUG 06:20:57.397 [aviheader] Audio stream found, -aid 1
    [Thread-30] DEBUG 06:20:57.397 VIDEO: [XVID] 624x352 24bpp 23.976 fps 977.5 kbps (119.3 kbyte/s)
    [Thread-30] DEBUG 06:20:57.397 [V] filefmt:3 fourcc:0x44495658 size:624x352 fps:23.976 ftime:=0.0417
    [Thread-30] DEBUG 06:20:57.397 ==========================================================================
    [Thread-30] DEBUG 06:20:57.397 Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
    [Thread-30] DEBUG 06:20:57.397 AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
    [Thread-30] DEBUG 06:20:57.397 Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
    [Thread-30] DEBUG 06:20:57.397 ==========================================================================
    [Thread-30] DEBUG 06:20:57.397 PACKET SIZE: 2048 bytes, deltascr: 884
    [Thread-30] DEBUG 06:20:57.397 Opening video filter: [expand osd=1]
    [Thread-30] DEBUG 06:20:57.397 Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
    [Thread-30] DEBUG 06:20:57.397 ==========================================================================
    [Thread-30] DEBUG 06:20:57.397 Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    [Thread-30] DEBUG 06:20:57.403 Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
    [Thread-30] DEBUG 06:20:57.403 ==========================================================================
    [Thread-27] DEBUG 06:20:57.403 [ac3 @ 0xd37ca0]No channel layout specified. The encoder will guess the layout, but it might be incorrect.
    [Thread-27] DEBUG 06:20:57.437 Limiting audio preload to 0.4s.
    [Thread-27] DEBUG 06:20:57.437 Increasing audio density to 4.
    [Thread-30] DEBUG 06:20:57.463 Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
    [Thread-30] DEBUG 06:20:57.463 videocodec: libavcodec (624x352 fourcc=3267706d [mpg2])
    [Thread-30] DEBUG 06:20:57.463 [VE_LAVC] Using constant qscale = 1.000000 (VBR).
    [Thread-30] DEBUG 06:20:57.617 Writing header...
    [Timer-1] DEBUG 06:20:59.396 Buffered Space: 26595328 bytes / inputs: 0
    [Thread-28] DEBUG 06:21:01.227 freeMemory: 25791584
    [Thread-28] DEBUG 06:21:01.227 totalMemory: 81592320
    [Thread-28] DEBUG 06:21:01.228 maxMemory: 715849728
    [Thread-28] DEBUG 06:21:01.228 Extending buffer to 419430400
    [Timer-1] DEBUG 06:21:01.397 Buffered Space: 49999872 bytes / inputs: 0
    [Thread-28] DEBUG 06:21:01.726 Done extending
    Thing is, I do not have the same issue with files that are not (yet) MP3-Audio powered, for instance :
    General
    Complete name : /srv/shares/media03/directories/toto.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    Format profile : OpenDML
    Format settings : rec
    File size : 1.59 GiB
    Duration : 1h 46mn
    Overall bit rate : 2 140 Kbps
    Writing application : AVI-Mux GUI 1.17.8.3, Feb 16 201019:42:50
    Video
    ID : 0
    Format : MPEG-4 Visual
    Format profile : Advanced Simple@L5
    Format settings, BVOP : 2
    Format settings, QPel : Yes
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (H.263)
    Codec ID : XVID
    Codec ID/Hint : XviD
    Duration : 1h 46mn
    Bit rate : 1 620 Kbps
    Width : 1 280 pixels
    Height : 544 pixels
    Display aspect ratio : 2.35:1
    Frame rate : 23.976 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.097
    Stream size : 1.20 GiB (76%)
    Writing library : XviD 1.2.1 (UTC 2008-12-04)
    Audio #1
    ID : 1
    Format : AC-3
    Format/Info : Audio Coding 3
    Mode extension : CM (complete main)
    Codec ID : 2000
    Duration : 1h 46mn
    Bit rate mode : Constant
    Bit rate : 384 Kbps
    Channel(s) : 6 channels
    Channel positions : Front: L C R, Side: L R, LFE
    Sampling rate : 48.0 KHz
    Bit depth : 16 bits
    Compression mode : Lossy
    Stream size : 292 MiB (18%)
    Alignment : Aligned on interleaves
    Interleave, duration : 64 ms (1.53 video frames)
    Interleave, preload duration : 192 ms
    Title : UW 6ch audio
    Audio #2
    ID : 2
    Format : AC-3
    Format/Info : Audio Coding 3
    Mode extension : CM (complete main)
    Codec ID : 2000
    Duration : 1h 46mn
    Bit rate mode : Constant
    Bit rate : 128 Kbps
    Channel(s) : 2 channels
    Channel positions : Front: L R
    Sampling rate : 48.0 KHz
    Bit depth : 16 bits
    Compression mode : Lossy
    Stream size : 97.4 MiB (6%)
    Alignment : Aligned on interleaves
    Interleave, duration : 64 ms (1.53 video frames)
    Interleave, preload duration : 192 ms
    Title : UW 2ch audio
    This file is well played by PS3 Media Server.
    I am quite confused with this issue ; did anyone experienced the same thing ?
    Best Regards,

    Having the same problem. I'm watching all of my movies without subs now, because transcoding kills the 5.1 audio (no problems with 2 channel audio). A workaround is posted in the comments of the pms-svn package.
    I will post the URL to this thread to another thread with probably the same problem (mplayer/x264). I have not yet seen a real solution to this, and I'm not really familiar with the bugzilla's from both projects.
    Other threads with similar problems:
    https://bbs.archlinux.org/viewtopic.php?id=112219 (devede also uses mplayer and x264)
    https://bugs.archlinux.org/task/22654 (related bug in Archlinux)
    http://bugzilla.mplayerhq.hu/show_bug.cgi?id=1865 (related bug in mplayer)
    https://bbs.archlinux.org/viewtopic.php?id=115165 (this thread)
    Another workaround might be to trick pms into using ffmpeg or vlc rather than mencoder. I'm also streaming to a ps3 - I didn't try it, but it could be as easy as temporarily changing settings inside the profile for a ps3-client.
    Last edited by zenlord (2011-03-22 16:15:38)

  • Loading external fonts in midp apps

    hello every body
    my question is can i add external fonts to my midp apps? say for example i want to add andulas.ttf font and want my application to show text in to that font?
    please provide a sample code if you can on how to do that....

    yes i need the font for display purpose. basically i am developing an application that receives an unicode character string upon request and display the content in bengali language. i have installed the Arial Unicode Ms to my machine and edited the .properties file of the default phone from sun wireless toolkit accordingly. Arial Unicode Ms supports my language. i am using StringItem to output my content. but when i am output the content it doesnt change the outcome. it just simpley outputing the unicode string as if it has been passed!!!!
    here goes my code..
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class UnicodeTest extends MIDlet
         private Display display = null;
         private Form fm = null;
         private StringItem si = null;
         private Command exit = null;
         public UnicodeTest()
              display = Display.getDisplay(this);
         public void startApp()
              fm = new Form("My form");
              si = new StringItem("in bengali: ","KixeDUw�k gwvlw hwnwk BxZpwo L�g �gxm xb�dk dt");
              fm.append(si);
              display.setCurrent(fm);
         public void pauseApp()
         public void destroyApp(boolean unconditional)
              notifyDestroyed();
    }the following goes my properties files font part...
    font.default=Arial Unicode MS-plain-10
    font.softButton=Arial Unicode MS-plain-11
    font.system.plain.small: Arial Unicode MS-plain-9
    font.system.plain.medium: Arial Unicode MS-plain-11
    font.system.plain.large: Arial Unicode MS-plain-14
    font.system.bold.small: Arial Unicode MS-bold-9
    font.system.bold.medium: Arial Unicode MS-bold-11
    font.system.bold.large: Arial Unicode MS-bold-14
    font.system.italic.small: Arial Unicode MS-italic-9
    font.system.italic.medium: Arial Unicode MS-italic-11
    font.system.italic.large: Arial Unicode MS-italic-14
    font.system.bold.italic.small: Arial Unicode MS-bolditalic-9
    font.system.bold.italic.medium: Arial Unicode MS-bolditalic-11
    font.system.bold.italic.large: Arial Unicode MS-bolditalic-14
    font.monospace.plain.small: Arial Unicode MS-plain-9
    font.monospace.plain.medium: Arial Unicode MS-plain-11
    font.monospace.plain.large: Arial Unicode MS-plain-14
    font.monospace.bold.small: Arial Unicode MS-bold-9
    font.monospace.bold.medium: Arial Unicode MS-bold-11
    font.monospace.bold.large: Arial Unicode MS-bold-14
    font.monospace.italic.small: Arial Unicode MS-italic-9
    font.monospace.italic.medium: Arial Unicode MS-italic-11
    font.monospace.italic.large: Arial Unicode MS-italic-14
    font.monospace.bold.italic.small: Arial Unicode MS-bolditalic-9
    font.monospace.bold.italic.medium: Arial Unicode MS-bolditalic-11
    font.monospace.bold.italic.large: Arial Unicode MS-bolditalic-14

  • How to use Unicode font in a AWT compoment?

    Dear,
    I am a new on Java.
    I want to use Unicode font in AWT/Swing but I cannot.
    I use JDK 1.4.1 & JBuilder 7.0.
    Please help me.
    Thanks,
    Cuong Ha.

    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=2&t=001235
    http://www.linuxforum.net/chinese/develop/java.html
    Hope its of help to you.

  • Using external Jar with a mobile application

    Hi folks!
       I need some help with my application, i make a simple mobile application and i need to use a external jar, in this case, this jar have a simple JAVA class that represents a manipulation with eSWT, so my problem is How to using external Jar in NetWeaver 7.1?
       I see other threads that have a same doubts, but i don´t have a solution for my problem.
       Thats it.

    Hi Sivakumar,
    I have similar problem. i want use iText or similar jar files to create pdf. I have currently developed a UI component for handheld. I have dont the following things:
    1)Created a external dc of type external library
    2) addedd the jar in the build path
    3) added the jar in the lib folder of the webdynpro project
    4) added the external jar dc as dependency in my webdynpro project
    I am getting no class def found eror still for some wierd reason. please let me know if some step is missing. I have pasted the trace.
    rror starting the framework
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sap.tc.mobile.cfs.startup.pda.Startup.main(Unknown Source)
    Caused by: java.lang.NoClassDefFoundError: com/cete/dynamicpdf/Font
         at com.sap.demo.testui.testapp.comp.SignatureStandard.runApps(SignatureStandard.java:88)
         at com.sap.demo.testui.testapp.comp.TestCompView.wdDoInit(TestCompView.java:85)
         at com.sap.tc.mobile.wdlite.progmodel.core.Controller.enter(Controller.java:21)
         at com.sap.tc.mobile.wdlite.progmodel.core.View.enter(View.java:45)
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.setCurrentView(Application.java:133)
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.navigate(Application.java:169)
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.enter(Application.java:19)
         at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.setCurrentApplication(WDLite.java:148)
         at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.launchApplication(WDLite.java:80)
         at com.sap.tc.mobile.wdlite.container.ContainerApp.startApp(ContainerApp.java:171)
         at com.sap.tc.mobile.wdlite.container.AppMenuView.onActionLaunchApp(AppMenuView.java:325)
         at com.sap.tc.mobile.wdlite.container.AppMenuView.invokeEventHandler(AppMenuView.java:368)
         at com.sap.tc.mobile.wdlite.progmodel.core.AbstractViewElement.doHandleEvent(AbstractViewElement.java:199)
         at com.sap.tc.mobile.wdlite.renderer.api.UIElement.doHandleEvent(UIElement.java:369)
         at com.sap.tc.mobile.wdlite.renderer.api.UIImageButton.mouseReleased(UIImageButton.java:148)
         at com.sap.tc.mobile.wdlite.renderer.api.UIElement.dispatchMouseReleasedWidgetEvent(UIElement.java:412)
         at com.sap.tc.mobile.wdlite.renderer.api.UIElement$1.mouseReleased(UIElement.java:455)
         at com.sap.tc.mobile.wdlite.renderer.swt.MouseEventDispatcher.mouseUp(SWTControl.java:380)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:137)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)

  • Using Sonata Font in Illustrator on IBookG4

    I'm using Sonata Font in Illustrator on an IBookG4 laptop and I'm suddenly NOT able to get all of the music notation that I can on a desktop.
    For example, each character on the keyboard corresponds to each musical notation; then there is the shift + character to get more musical notation; and also option + character to get the rest of the musical notation.
    I can not use option + character to get the last of the musical notation that I need.
    Is it the laptop keyboard or Illustrator?
    Please advise

    There may be some kind of font conflict; the use of a font utility or other
    tool may be warranted. This specialized use of software appears to have
    limited your hoped-for replies in solving the immediate problem.
    In other instances, where some keyboard combinations don't work on a
    portable Apple computer (whether or not they did work, then failed, is
    another matter) there is an Apple support document which suggests
    the use of an external keyboard will do more than the built-in one can.
    The following link may not apply to your situation, or model:
    [ Apple Portables: Some Key Combinations May Not Be Recognized... ]
    I'm wondering if there isn't something simple, other than managing fonts,
    that could help this issue go away. I suppose you've tried routine system
    maintenance such as repair disk permissions and other duties; and if
    the hardware is suspect, ran the Apple Hardware Test to see if there is
    another indication of a keyboard failure..? Since you say it was sudden,
    I wonder if the built-in keyboard is the problem. Best of luck...!

  • Why does firefox want to use different fonts on mounted hard drives

    On Mac OS 10.6.5 using Firefox 3.6.12 upon opening Firefox, I get a dialog box that says "Firefox want to use the font "TremorlTC TT" on the volume "USB BU".
    This happens for both of my external hard drives. It gives me the options: Show in Finder Don't Allow or Allow. I have tried all 3 and neither solves the problem.

    Move all User fonts in Font Book to Computer fonts:
    # Launch Font Book (/Applications/Utilities/)
    # Open Font Book > Preferences
    # Deselect: "Automatic Font Activation"
    # Set the "Default Install Location" for fonts to Computer
    # Select all User fonts.
    # Move the selected User fonts to Computer fonts
    # Remove all duplicate fonts in Computer fonts

  • External Fonts not loading properly in panels & buttons, works fine in labels / edits - help!

    Hey guys,
    I'm new to developing in Flex, so please excuse any
    ignorance.
    I followed the basic tutorial to use Flex to import external
    fonts... here's my CSS code:
    @font-face {
    src: url(components/fonts.swf);
    fontFamily: "Blue Moon";
    global
    color: #000000;
    fontFamily: "Blue Moon";
    fontSize:20px;
    Here's what's happening:
    1) On my development machine, I have the "Blue Moon" font
    installed. Everything works fine here - I see the Blue Moon font on
    everything in my project, from the titles of Panels to Buttons, and
    so on. Everything's great.
    2) On all other machines, which do NOT have the Blue Moon
    font installed, I see the Blue Moon font properly on the labels and
    edit boxes, but NOT on the buttons or on the title areas of panels.
    Here is my site, so you can see what I mean:
    http://thedemenscycle.com/
    Assuming you don't own the Blue Moon font, you should notice
    that the panel titles are a default font, where the "Username" and
    "Password" and edit box fields are the Blue Moon font.
    I am forced to conclude that for whatever reason my code is
    not applying the externally imported font to the panels and buttons
    for whatever reason. But it DOES apply the local font on the
    machine, if availible. I'm really quite confused.
    Any insight / help would be greatly appreciated!
    Thanks,

    I had this same problem, ended up just droping the fonts,
    would be nice to see an official response to this issue.

  • Unicode font for swing components

    Hi all,
    I'd like to set a Swing component (a JLabel) to a particular font so it will properly display Unicode Greek text. I've been reading all about physical vs. logical fonts, and I've read through the various Sun docs/faqs on Internationalization, Fonts, and Unicode, but I just can't get this to work. I think I'm missing something more basic here about selecting my font. My test word is the Greek "khairete," with an accent over the iota. Here is the Unicode:
    \u03c7\u03b1\u1f77\u03c1\u03b5\u03c4\u03b5
    The trick is that accented iota.
    I can launch an xterm that shows the characters I want like this:
    $ xterm -fn -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1 &
    That tells me that if I can get Java to use that font, then I'm all set. I'm trying the following test program:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.io.*;
    public class GUI extends JFrame {
    public static final String MESSAGE = "\u03c7\u03b1\u1f77\u03c1\u03b5\u03c4\u03b5";
    public GUI() throws Exception {
    super();
    Font[] fonts;
    Container container;
    JLabel label;
    fonts = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts();
    for (int j=0;j<fonts.length;j++) {
    System.out.println(fonts[j]);
    container = getContentPane();
    container.setLayout(new GridLayout(0, 1));
    // try with the default font
    label = new JLabel(MESSAGE);
    container.add(label);
    printFont(label.getFont());
    // see what the default font looks like when PLAIN (to compare with fonts below)
    label = new JLabel(MESSAGE);
    label.setFont(label.getFont().deriveFont(Font.PLAIN, 12));
    container.add(label);
    printFont(label.getFont());
    // this looks the same as the default font, meaning we didn't find what we asked for.
    label = new JLabel(MESSAGE);
    label.setFont(new Font("-misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1", Font.PLAIN, 12));
    container.add(label);
    printFont(label.getFont());
    // this also falls back to the default.
    label = new JLabel(MESSAGE);
    label.setFont(Font.getFont("-misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1"));
    container.add(label);
    printFont(label.getFont());
    // this (of course) falls back to the default.
    label = new JLabel(MESSAGE);
    label.setFont(Font.getFont("not a font name"));
    container.add(label);
    printFont(label.getFont());
    // try every font we've got!
    for (int j = 0; j < fonts.length; j++) {
    label = new JLabel(fonts[j] + ": " + MESSAGE);
    label.setFont(fonts[j].deriveFont(Font.PLAIN, 12));
    container.add(label);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    pack();
    show();
    public static void printFont(Font f) {
    System.out.println(f);
    if (f != null) {
    public static void main(String[] args) throws Exception {
    GUI me = new GUI();
    But nothing in this code succeedings in printing \u1f77. As I've said, the plain old xterm can do it. I think my problem is that I haven't successfully referenced the desired font in the Java code. But how do I do this? These are the fonts available to me, according to the code above:
    java.awt.Font[family=Bitstream Charter,name=Bitstream Charter,style=plain,size=1]
    java.awt.Font[family=Bitstream Charter,name=Bitstream Charter Bold,style=plain,size=1]
    java.awt.Font[family=Bitstream Charter,name=Bitstream Charter Bold Italic,style=plain,size=1]
    java.awt.Font[family=Bitstream Charter,name=Bitstream Charter Italic,style=plain,size=1]
    java.awt.Font[family=Courier,name=Courier,style=plain,size=1]
    java.awt.Font[family=Courier 10 Pitch,name=Courier 10 Pitch,style=plain,size=1]
    java.awt.Font[family=Courier 10 Pitch,name=Courier 10 Pitch Bold,style=plain,size=1]
    java.awt.Font[family=Courier 10 Pitch,name=Courier 10 Pitch Bold Italic,style=plain,size=1]
    java.awt.Font[family=Courier 10 Pitch,name=Courier 10 Pitch Italic,style=plain,size=1]
    java.awt.Font[family=Courier,name=Courier Bold,style=plain,size=1]
    java.awt.Font[family=Courier,name=Courier Bold Italic,style=plain,size=1]
    java.awt.Font[family=Courier,name=Courier Italic,style=plain,size=1]
    java.awt.Font[family=Cursor,name=Cursor,style=plain,size=1]
    java.awt.Font[family=Lucida Bright,name=Lucida Bright Demibold,style=plain,size=1]
    java.awt.Font[family=Lucida Bright,name=Lucida Bright Demibold Italic,style=plain,size=1]
    java.awt.Font[family=Lucida Bright,name=Lucida Bright Italic,style=plain,size=1]
    java.awt.Font[family=Lucida Bright,name=Lucida Bright Regular,style=plain,size=1]
    java.awt.Font[family=Lucida Sans,name=Lucida Sans Demibold,style=plain,size=1]
    java.awt.Font[family=Lucida Sans,name=Lucida Sans Demibold Oblique,style=plain,size=1]
    java.awt.Font[family=Lucida Sans,name=Lucida Sans Oblique,style=plain,size=1]
    java.awt.Font[family=Lucida Sans,name=Lucida Sans Regular,style=plain,size=1]
    java.awt.Font[family=Lucida Sans Typewriter,name=Lucida Sans Typewriter Bold,style=plain,size=1]
    java.awt.Font[family=Lucida Sans Typewriter,name=Lucida Sans Typewriter Bold Oblique,style=plain,size=1]
    java.awt.Font[family=Lucida Sans Typewriter,name=Lucida Sans Typewriter Oblique,style=plain,size=1]
    java.awt.Font[family=Lucida Sans Typewriter,name=Lucida Sans Typewriter Regular,style=plain,size=1]
    java.awt.Font[family=Luxi Mono,name=Luxi Mono Bold,style=plain,size=1]
    java.awt.Font[family=Luxi Mono,name=Luxi Mono Bold Oblique,style=plain,size=1]
    java.awt.Font[family=Luxi Mono,name=Luxi Mono Oblique,style=plain,size=1]
    java.awt.Font[family=Luxi Mono,name=Luxi Mono Regular,style=plain,size=1]
    java.awt.Font[family=Luxi Sans,name=Luxi Sans Bold,style=plain,size=1]
    java.awt.Font[family=Luxi Sans,name=Luxi Sans Bold Oblique,style=plain,size=1]
    java.awt.Font[family=Luxi Sans,name=Luxi Sans Oblique,style=plain,size=1]
    java.awt.Font[family=Luxi Sans,name=Luxi Sans Regular,style=plain,size=1]
    java.awt.Font[family=Luxi Serif,name=Luxi Serif Bold,style=plain,size=1]
    java.awt.Font[family=Luxi Serif,name=Luxi Serif Bold Oblique,style=plain,size=1]
    java.awt.Font[family=Luxi Serif,name=Luxi Serif Oblique,style=plain,size=1]
    java.awt.Font[family=Luxi Serif,name=Luxi Serif Regular,style=plain,size=1]
    java.awt.Font[family=Utopia,name=Utopia Bold,style=plain,size=1]
    java.awt.Font[family=Utopia,name=Utopia Bold Italic,style=plain,size=1]
    java.awt.Font[family=Utopia,name=Utopia Italic,style=plain,size=1]
    java.awt.Font[family=Utopia,name=Utopia Regular,style=plain,size=1]
    java.awt.Font[family=dialog,name=dialog,style=plain,size=1]
    java.awt.Font[family=dialog,name=dialog.bold,style=plain,size=1]
    java.awt.Font[family=dialog,name=dialog.bolditalic,style=plain,size=1]
    java.awt.Font[family=dialog,name=dialog.italic,style=plain,size=1]
    java.awt.Font[family=dialoginput,name=dialoginput,style=plain,size=1]
    java.awt.Font[family=dialoginput,name=dialoginput.bold,style=plain,size=1]
    java.awt.Font[family=dialoginput,name=dialoginput.bolditalic,style=plain,size=1]
    java.awt.Font[family=dialoginput,name=dialoginput.italic,style=plain,size=1]
    java.awt.Font[family=monospaced,name=monospaced,style=plain,size=1]
    java.awt.Font[family=monospaced,name=monospaced.bold,style=plain,size=1]
    java.awt.Font[family=monospaced,name=monospaced.bolditalic,style=plain,size=1]
    java.awt.Font[family=monospaced,name=monospaced.italic,style=plain,size=1]
    java.awt.Font[family=sansserif,name=sansserif,style=plain,size=1]
    java.awt.Font[family=sansserif,name=sansserif.bold,style=plain,size=1]
    java.awt.Font[family=sansserif,name=sansserif.bolditalic,style=plain,size=1]
    java.awt.Font[family=sansserif,name=sansserif.italic,style=plain,size=1]
    java.awt.Font[family=serif,name=serif,style=plain,size=1]
    java.awt.Font[family=serif,name=serif.bold,style=plain,size=1]
    java.awt.Font[family=serif,name=serif.bolditalic,style=plain,size=1]
    java.awt.Font[family=serif,name=serif.italic,style=plain,size=1]
    javax.swing.plaf.FontUIResource[family=Dialog,name=Dialog,style=bold,size=12]
    java.awt.Font[family=Dialog,name=Dialog,style=plain,size=12]
    java.awt.Font[family=dialog,name=-misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1,style=plain,size=12]
    javax.swing.plaf.FontUIResource[family=Dialog,name=Dialog,style=plain,size=12]
    javax.swing.plaf.FontUIResource[family=Dialog,name=Dialog,style=plain,size=12]
    Apparently, I need to use the correct "name" to specify the font. So my next try was this:
    $ xlsfonts -ll -fn -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
    name: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
    direction: left to right
    indexing: matrix
    rows: 0x00 thru 0x30 (0 thru 48)
    columns: 0x00 thru 0xff (0 thru 255)
    all chars exist: no
    default char: 0x0000 (0)
    ascent: 14
    descent: 4
    font type: Character Cell
    bounds: width left right asc desc attr keysym
    min 9 0 0 -3 -13 0x0000
    max 9 8 9 14 4 0x0000
    properties: 23
    FONTNAME_REGISTRY
    FOUNDRY Misc
    FAMILY_NAME Fixed
    WEIGHT_NAME Medium
    SLANT R
    SETWIDTH_NAME Normal
    ADD_STYLE_NAME
    PIXEL_SIZE 18
    POINT_SIZE 120
    RESOLUTION_X 100
    RESOLUTION_Y 100
    SPACING C
    AVERAGE_WIDTH 90
    CHARSET_REGISTRY ISO10646
    CHARSET_ENCODING 1
    COPYRIGHT Public domain font. Share and enjoy.
    XMBDFEDINFO 654
    CAP_HEIGHT 10
    X_HEIGHT 7
    FONT -Misc-Fixed-Medium-R-Normal--18-120-100-100-C-90-ISO10646-1
    WEIGHT 10
    RESOLUTION 138
    QUAD_WIDTH 9
    name: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
    direction: left to right
    indexing: matrix
    rows: 0x00 thru 0x30 (0 thru 48)
    columns: 0x00 thru 0xff (0 thru 255)
    all chars exist: no
    default char: 0x0000 (0)
    ascent: 14
    descent: 4
    font type: Character Cell
    bounds: width left right asc desc attr keysym
    min 9 0 0 -3 -13 0x0000
    max 9 8 9 14 4 0x0000
    properties: 23
    FONTNAME_REGISTRY
    FOUNDRY Misc
    FAMILY_NAME Fixed
    WEIGHT_NAME Medium
    SLANT R
    SETWIDTH_NAME Normal
    ADD_STYLE_NAME
    PIXEL_SIZE 18
    POINT_SIZE 120
    RESOLUTION_X 100
    RESOLUTION_Y 100
    SPACING C
    AVERAGE_WIDTH 90
    CHARSET_REGISTRY ISO10646
    CHARSET_ENCODING 1
    COPYRIGHT Public domain font. Share and enjoy.
    XMBDFEDINFO 654
    CAP_HEIGHT 10
    X_HEIGHT 7
    FONT -Misc-Fixed-Medium-R-Normal--18-120-100-100-C-90-ISO10646-1
    WEIGHT 10
    RESOLUTION 138
    QUAD_WIDTH 9
    (Yes, xlsfonts prints two entries.)
    Here is a bit more data:
    [pjungwir@mccurdy unicode_gui]$ uname -a
    Linux mccurdy.nfic.com 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux
    [pjungwir@mccurdy unicode_gui]$ cat /etc/redhat-release
    Red Hat Linux release 8.0 (Psyche)
    [pjungwir@mccurdy unicode_gui]$ java -version
    java version "1.4.2_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
    Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)
    If anyone has any suggestions, I would really appreciate it. I'd like to find an answer that doesn't involve editing the font.properties file.
    Thanks,
    --Paul

    Hi Sojan,
    first up, forget the notion of even tinkering with the font.properties file if you can. It's an old, outdated method of setting up the fonts that Sun doesn't even support any more. Use setFont() where you can, and die trying in the process! ;-)
    One thing I would check is which font each AWT component currently thinks it has. It's easy enough to set the font system wide with Swing components, but I'm not sure if that capability extends to AWT components (I've certainly had trouble with it in various places in the past). While you've set up the Chinese font correctly, your AWT components might still be stuck with the Java default (Helvetica, or whatever it is, which is incapable of displaying Chinese), and hence displaying the rectangles because they don't know how to handle the foreign characters. You might need to set SimSun as the font for each of your AWT components individually at a worst-case scenario.
    Hope that helps,
    Martin Hughes

Maybe you are looking for