How to retrieve Font info using JDK

Hello there:
I am wondering how I can find as much info about a font as I can using JDK. I can use
GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts();
to retrieve the Font object, and get its name, family, that's pretty much of it. There is getAttributes, but I am not sure how it works. If I want to know such info as the folder containing a particular font, the font's foundry, etc, I don't know how to get them.
Anyone can point me to a right direction and maybe I can take from there.
Thanks a lot,
Sway

thanks man, but i need more info about a font than that. Anyway I've found sun's API helpful to some extend.
http://www.docjar.com/docs/api/sun/font/package-index.html

Similar Messages

  • How to retrieve multiple columns using "returning" in the Insert query.

    hi,
    wanted to know how to retrieve multiple columns using "returning" in the Insert Query.
    For retrieving one column we write the query as follows:
    Insert into TABLE values(1,2,3,4) returning COLUMN1 into PARAMETER
    But can we retrive multiple columns in the same query?
    am using oracle 10g and coding in .NET

    Hi,
    You can definetely get multiple values from a single query using the 'returning' clause.
    Eg : insert into emp (empno, ename, job, deptno) values (7324,'ADAM','MARKETING',30) returning ename, deptno into var1, var2; PN : var1 & var2 to be declared as varchar2 & number respectively.
    More insight into the 'RETURNING' clause in this link.
    http://www.samoratech.com/PLSQL/swArtPLSQLReturn.htm
    Regards,
    Bhanu.

  • How to retrieve character '#' when use Shift key + 3 instead of use Option key + 3?

    Hi everyone,
    Kindly advice how to retrieve character '#' when use Shift key + 3 instead of Option key + 3.
    Thank you in advance.

    Hi Tom,
    Thanks for your proposed solution. The problem has been solved.

  • How to retrieve  users info

    does anyone Knows how to retrieve the users info.
    for example if I want to create a LOV that contains the emails of all the users.
    thanks in advance.

    Retrieve them using and LDAP Search via DBMS_LDAP. Or you could cheat and search the ODS schema tables directly which contain all of the LDAP info. See the DS_ATTRSTORE table. Pull all attributes with a name like "mail"

  • How to retrieve the system used in an iview?

    hello,
    i'm currently having trouble retrieving the proper attribute of an iview to retrieve the system used by it.
    it seem like the strings identifying the system in the iview differ in some iviews.
    using either:
    myIView.getAttribute(IAttriView.PORTAL_SYSTEM)
    or
    myContext.getAttributes("").get("System").get().toString()
    produce errors.
    while get("System") sometimes provides the correct system alias the attribute is none existant for other iviews where the string would be "Systemalias".
    IAttriView.PORTAL_SYSTEM doesn't seem to work at all.
    i did implement fail safe code if the attribute isn't present, however i don't know how to retrieve the system attribute without doing a case switch or something similar for all the different strings, which i would prefer not to do.
    also, is there an easy way to retrieve all iviews which use a specific system without parsing the whole pcd and checking the attributes?

    Prerequisite : Create the System Alias for the systems used in the application.
    Use the below code to retrieve the system details:
            HashMap mapattr = new HashMap();
            HashMap map = new HashMap();
            IUser user = WDClientUser.getCurrentUser().getSAPUser();
            IPrincipal principal = (IPrincipal)user;
            ArrayList list = UMFactory.getSystemLandscapeWrappers();
            ISystemLandscapeWrapper systemLandscape = (ISystemLandscapeWrapper)list.get(0);
            //Portal System ALias name
            ISystemLandscapeObject landScapeObject = systemLandscape.getSystemByAlias("<system alias name>");
            IUserMappingData userMapping = (IUserMappingData) UMFactory.getUserMapping().getUserMappingData(landScapeObject,principal);
            userMapping.enrich(map);
            mappedUserId = map.get("user").toString(); // String "UserId"
            mappedPassword = map.get("mappedpassword").toString(); //String "Password" 
         catch(Exception e)
              e.printStackTrace();
              wdComponentAPI.getMessageManager().reportException("Exception during retrieving the User Details - " + e.getMessage(),true);
    Thanks & Regards,
    Amar Bhagat Challa

  • How to retrieve a node using xpath in java

    Hi,
    I need to make an application in which on click of a button an xml is
    displayed on the browser.
    Now when a user selects a node in the xml then i need the xpath of the selected node for some processing.
    How to retrieve the xpath.
    I am using Struts framework.

    There is not a specific method for achieving this.
    You can store the whole xml document into a defined
    structure. And get the needed xpath by some index.Yes i know that i'll need to store the file.
    But my XML is fixed and the same XML is used everytime.
    Now the structure of the XML is like it has same named nodes inside the parent node.
    example :
    <Human>
    <Person>
    <Person></Person>
    <Person>
    <Person><name>fsfsdsdf</name></Person>
    </Person>
    </Person>
    <Human>
    Now if the user selects the person node which contains name node then how to get the XPATH.
    Can u help regarding the same........

  • How to retrieve export parameters using startrfc?

    When using the standard SAP client program <b>startrfc</b> to  remotely call an ABAP function in SAP, is it possible to retrieve the export parameters?
    The startrfc program only seems to allow you to send an import parameter (using the –E option)  and to send/retrieve a table, using the –T option.
    For example, the function BAPI_USER_EXISTENCE_CHECK exports the parameter RETURN of type BAPIRET2. How can you retrieve this export parameter using the startrfc program?

    HI Linda,
    Create an export variable and in the parameter reference give the field reference of the field like this VBELN[], then this forms a structure parameter...
    Then place all your recorded SAPGUI/TCD with in Message/EndMessage Block, and make a rule as an expected message, something like this...
    MODE                    MSGID           MSGNR    MSGV1
    'E'               '/DBM/COMMON'     467     E_VBELN     
    MSGID & MSGNR might differ in your case use them accordingly, also check the previous log and make sure that the order number is MSGV1, if it is in MSGV2, place the variable E_VBELN in the MSGV2 field of the message Rule.
    This should generally fetch you all the order numbers...
    But in some situations it didnt work in my case, so here is the second solution...
    MESSAGE ( MSG_1 ).
    SAPGUI/TCD RECORDING
    ENDMESSAGE ( E_MSG_1 ).
    DO ( &TFILL ).
    IF ( E_MSG_1[&LPC]-MSGID = '/DBM/COMMON' AND E_MSG_1[&LPC]-MSGNR = 467 ).
         E_VBELN[V_COUNT]-TABLE_LINE = E_MSG_1[&LPC]-MSGV1.( V_COUNT Should also be declared, but as a local variable)
         V_COUNT = V_COUNT + 1.
    ENDIF.
    ENDDO.
    This was you will get all the order numbers in one variable, which you can access in any script while looping the varable based on its length..
    Check and modify accordingly.
    Hope this helps..
    Best regards,
    Harsha
    PS: award points if this answer helps solve your issue.

  • How to retrieve Statistics info from Crystal Report file

    In Crystal Reports designer,  if you go to File|Summary Info that dialog has two tabs. The second tab is called "Statistics" which contains the following:
    Last Saved By
    Revision number
    Total Editing Time
    Last Printed
    Created
    Last Saved
    How can I retrieve this information via either the .NET SDK or the RAS SDK?

    Hi David,
    Actually I did understood your question. I did say that some of that info is available from the hard drive file system.
    Use the Object Browser and find this source:
    public System.DateTime CreationTime { set; get; }
        Member of System.IO.FileSystemInfo
    Looking at the properties you'll see all the info you are looking for is there. As I said, some of the info is available from the Summary API's and some are available from the file system. The file system is not CR but basic Microsoft API's. Search their help for more info on how to use them.
    Thank you
    Don

  • How to retrieving the content using Links

    Hi
    Please suggest me how to retrive content using link property.
    I have added link property to my Content. and i have added in internal resource path to the Link property.
    But my question is how access the page which is linked to my Content.
    How can i use it with anchor tag when i want show display the linked page content.
    what are tags to be used to retrive the linked content in the page.
    I found below line in CM documentation
    "These relationships are used by developers in their content queries when retrieving content to display in
    your portal."
    But i could found how to retrive.
    Genarally what technique we use to link an internal resource of our Content management
    thanks in advance
    Edited by: vamshi krishna on Jun 12, 2011 12:32 AM

    It sounds like there may be a misunderstanding about our link property feature.
    That feature is not for web hyperlinks. For that you can just use a string property. The links feature is for pointers to other pieces of content.
    (from: http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/cm/contentTypesCm.html)
    "Using Link Properties
    You can create properties that allow content contributors to associate content items. Content contributors can link to content within the same or different repositories within the Virtual Content Repository. For example, if you have related content items that are stored in different folders, you can use content link properties to create relationships among content items. These relationships are used by developers in their content queries when retrieving content to display in your portal.
    Link properties can also be multi-valued to allow content contributors to link to multiple content items. For detailed instructions on adding a link property, see Define the Properties of a Content Type."
    Edited by: Chris Bales on Jun 13, 2011 2:56 PM

  • How to import fonts (for use with g.drawString)?

    Problem
    I need (and or would like to) import a custom font (.TTF) from my src folder. So that I can do something similar to the following:
    Example
    Font font = import_font;//this is the question
    g.setFont(font);
    g.drawString("string",30,30);
    Question
    How do I import fonts (.TTF preferably) from my src folder? (a link is a sufficient answer)
    Edited by: watwatacrazy on Nov 14, 2009 6:06 AM

    DarrylBurke wrote:
    Read the API. Font has static methods that return a Font instance and take a File as one of the parameters.
    dbThanks!
    I used the createFont and the deriveFont method (for those that may ask the same question).

  • How to retrieve RGB info of a transparent background in a .PNG?

    Hi,
    I often render images in a 3D-CAD software. These images can be written as .PNG (24 bits I guess) with the alpha channel/transparency included. But sometimes I wish to expose the RGB information "behind" the transparent pixels. I know the information is there, since I've seen it in the past in another image-viewer. Is there a secret button to reveal the layer information of the background? I searched for a long time for this, but cannot find any answer so far. Anybody knows if this is possible in PS?
    regards,
    Roy
    Adobe Photoshop Version: 11.0.1 (11.0.1x20090218 [20090218.r.523 2009/02/18:02:00:00 cutoff; r branch])
    Operating System: Windows XP 32-bit
    Version: 5.1 Service Pack 2
    System architecture: Intel CPU Family:6, Model:15, Stepping:11 with MMX, SSE Integer, SSE FP, SSE2
    Physical processor count: 4
    Processor speed: 2405 MHz
    Video Card: NVIDIA Quadro FX 4600
    Video Mode: 1920 x 1200 x 4294967296 colors
    Video Card Driver: nv4_disp.dll
    Driver Version: 6.14.11.9187
    Built-in memory: 2047 MB
    Free memory: 950 MB
    Memory available to Photoshop: 1683 MB
    Memory used by Photoshop: 60 %
    Image cache levels: 4
    Serial number: <removed>

    The transparency is kept with the image as a separate layer.  As long as the erasure through the image layer has not been 100%, the RGB values are indeed intact.  When the erasure (resulting in transparency) is 100%, the pixels are changed to white.
    Chris' method works like a charm, but you're right, it's CS5 only.
    You could also duplicate the layer then merge together to increase the opacity.  Do this enough times in a row (e.g., on an 8 bit image, 8 or more times) and you'll reach 100% opacity.
    I've written you a quick action to do the job either way.  The second method should work in older Photoshop versions, and also allows you to go back in the History and select a step where only some of the transparency is removed.
    http://www.ProDigitalSoftware.com/temp/RemoveTransparency2.zip
    Open this zip, and (with later versions of Photoshop) double click the .atn file to load it into the Actions palette of Photoshop.
    Make your Actions palette visible by selecting Window - Actions from the menu.
    Make your partially transparent image current, then run the "Remove Transparency 2" action by first clicking once on the name "Remove Transparency 2" to highlight it, then clicking the little triangular > play button at the bottom of the Actions palette.  It will run through a number of steps and leave you with an opaque image.
    Please let me know how this works for you.
    -Noel

  • How to retrieve string array using Session?

    Hi, I am having some problem retrieving string arrays through session.
    String personalData[] = new String[17];
    personalData = (String [])session.getValue("PersonalData");
    The coding above isn't working. Advise pls.. Thanks

    The getValue() method is deprecated - you should probably be using getAttribute.
    What about this code isn't working? Looks ok to me, as long as the "PersonalData" object in the session is a String[] it should work.
    Cheers,
    evnafets

  • How to retrieve REST feed using XI

    Hi,
    We have a partner that setup a REST (Representational state transfer) feed and we need to retrieve data from that feed using XI and push the data to R/3. The data is presented in plain HTTP with no SOAP wrapper and we access the queue using a username and password. I can't find an adapter that will do the job, am I missing something or does anyone have a work-around?
    Johan

    Hi Prateek,
    Thanks for the suggestion, but I don't think it will work. The HTTP adapter cannot "poll" for new data as a file adapter can. REST is in a way similar to RSS where you have to pull down data from a website and the website does not send the data to you.
    Regards,
    Johan

  • How to retrieve DB values using select-options

    Hi all,
            I have problem to run this code for getting select option values in runtime.  Is there any function, methods or structure to know this?  I didnot get DB values when I click select-option button.
            I would like to display DB field values when i click select-option pushbutton.  select-option values while programs working in runtime.
    Example Code:
    REPORT  ZBAPUSHBUTTON.
    data: lryrctno type ZLRYRCT-ZEBELN,
          LDRIVER_FN type ZLRYRCT-DRIVER_FN,
          LZDELDT TYPE ZLRYRCT-ZDELDT,
          LZLRYNO TYPE ZLRYRCT-ZLRYNO,
          LZDRIVERID type zlryrct-ZDRIVERID.
    DATA: LRYRCT TYPE ZLRYRCT.
    SELECTION-SCREEN PUSHBUTTON 10(10) LB1 USER-COMMAND PB1.
    SELECTION-SCREEN PUSHBUTTON 25(10) LB2 USER-COMMAND PB2.
    SELECTION-SCREEN BEGIN OF SCREEN 100 TITLE T1.
    PARAMETERS: PLRYCTNO like lryrctno,
              PDR_FN LIKE LDRIVER_FN,
              PZDELDT LIKE LZDELDT,
              PZLRYNO LIKE LZLRYNO.
    SELECTION-SCREEN END OF SCREEN 100.
    SELECTION-SCREEN BEGIN OF SCREEN 200 TITLE T2.
    select-options: slryctno for lryrctno,
                    sdr_fn for ldriver_fn,
                    szdeldt for lzdeldt,
                    szlryno for lzlryno,
                    pzdrid for lzdriverid no intervals.
    SELECTION-SCREEN END OF SCREEN 200.
    INITIALIZATION.
    T1 = 'SELECT CHECK BOX AND RADIO BUTTON'.
    T2 = 'SELECT PARAMETERS'.
    LB1 = 'PARAMETER'.
    LB2 = 'SELECT-OPTION'.
    AT SELECTION-SCREEN.
    CASE SY-UCOMM.
    WHEN 'PB1'.
    CALL SELECTION-SCREEN 100.
    select single * from zlryrct into lryrct where zebeln = plryctno.
        if sy-subrc = 0.
          message 'primary key already exists. enter different lorry rect. no.' type 'W'.
        endif.
        LRYRCT-ZEBELN    = PLRYCTNO.
        LRYRCT-DRIVER_FN = PDR_FN .
        LRYRCT-ZDELDT    = PZDELDT.
        LRYRCT-ZLRYNO    = PZLRYNO.
        INSERT INTO ZLRYRCT VALUES LRYRCT.
        if not sy-subrc = 0.
          MESSAGE 'Insert not possible' TYPE 'W' .
        endif.
    WHEN 'PB2'.
    CALL SELECTION-SCREEN 200.
        select * from zlryrct into lryrct where
                 zebeln in slryctno and
                 driver_fn in sdr_fn and
                 zdeldt in szdeldt and
                 zlryno in szlryno.
          write: / lryrct-zebeln, LRYRCT-DRIVER_FN, LRYRCT-ZDELDT, LRYRCT-ZDELDT, LRYRCT-ZLRYNO .
        endselect.
    ENDCASE.

    What you are looking for is called "search help" (SE11 transaction), you may reuse an existing one (it must be attached to data element, or structure component as foreign key, etc.) Please look at SAP documentation and forums. You may also program it yourself by using AT SELECTION-SCREEN ON VALUE-REQUEST FOR ...

  • How to retrieve reference number using workitem id in workflows

    I am trying to get the Process status from table T5ASRPROCESSES but I am not sure from where to get the reference number.
    I have the workitem detail. Can you please let me know how to link workitem id and reference number

    Hi,
    This can be taken from the table T5ASRPROCESSES field is REFERENCE_NUMBER.
    You pass this reference number in SCASE transaction and get details of WF container.
    Best Regards,
    IFF

Maybe you are looking for

  • Mail application will not open... Why?

    Recently, I deleted a whole bunch of icons from my desktop, because they were doubles... I wanted them ONLY on the dock, not on the desktop (excuse my ignorance in not understanding computers very well).  I also emptied the trash and THEN realized i

  • Is there a decent or any shuffle drum pattern in Apple loops for GB

    Looking for a decent schuffle drum pattern, or any 6/8 pattern in GB loops. Not available?

  • Passing default parameter to WebI for SAP BW cube

    Hi All, Data Source: SAP BW BI Layer: BO 3.1 Here goes my question: We have a cube which contains HR related data. I want to query data in such a way that it gets me data for the current month and year. The time dimension contains a hierarchy called

  • I've tried everything

    I know this has been beaten into the ground but I still cannot get my iPod Touch to be recognized by my computer. I'm running XP Home SP2. -I have usb 2.0 -I have itunes 7.6 (uninstalled and reinstalled at least 5 times now) -I have the correct drive

  • D5460 Printing Preferences are blank or corrupted on Windows 8.1

    Hi, When I go to the printer settings fir my D5460 I get corrupted or blank dialogues. I am running Windows 8.1 on an i7 4930K. From Control Panel\All Control Panel Items\Devices and Printers\HP Photosmart D5400 series I click on Customize your Print