How to set the font of label in ColumnChart correctly?

hello, everybody
By flex sdk 4.1.0, 4.5.1,
the same source but two effects of font of label of ColumnChart will be displayed.
.mxml:
<!-- mxml start -->
<?xml version="1.0" encoding="utf-8"?>
<s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   width="100%" height="100%"
                   styleName="backgroundChart" xmlns:local="*" xmlns:common="common.*">
    <fx:Declarations>
        <s:SolidColorStroke id="white" weight="1" color="#CCCCCC"/>
    </fx:Declarations>
    <s:Label text="" id="titleLabel" textAlign="left" styleName="graphLabel" x="10" y="10" width="100%" height="40" visible="true"/>
    <mx:Legend id="ch01Legend" direction="horizontal" dataProvider="{mainChart}" height="100%" width="100%" x="30" y="30" styleName="myLegend1"/>
    <!-- Define custom Strokes. -->
    <mx:ColumnChart id="mainChart" showDataTips="true" x="20" y="60" width="100%" height="100%" dataTipFunction="dataTip">
        <mx:backgroundElements>
            <mx:GridLines horizontalChangeCount="1" gridDirection="horizontal">
                <mx:horizontalStroke>{white}</mx:horizontalStroke>
            </mx:GridLines>
        </mx:backgroundElements>
        <mx:verticalAxisRenderers>
            <mx:AxisRenderer axis="{linearAxis}" showLine="true" showLabels="true" styleName="myAxisStyle1">
                <mx:axisStroke>{white}</mx:axisStroke>
            </mx:AxisRenderer>
        </mx:verticalAxisRenderers>
        <mx:verticalAxis>
            <mx:LinearAxis id="linearAxis"
                           minimum="0"
                           autoAdjust="true"
                           title="Unit"
                           />
        </mx:verticalAxis>
        <mx:horizontalAxisRenderers>
            <mx:AxisRenderer id="horizonLabel" labelRotation="45" axis="{ch01_a2}" showLine="true" showLabels="true" styleName="myAxisStyle3">
                <mx:axisStroke>{white}</mx:axisStroke>
            </mx:AxisRenderer>
        </mx:horizontalAxisRenderers>
        <mx:horizontalAxis>
            <mx:CategoryAxis id="ch01_a2"
                             dataProvider="{mainChart}"
                             title="Period"
                             categoryField="Period"
                             />               
        </mx:horizontalAxis>
    </mx:ColumnChart>
</s:BorderContainer>
<!-- mxml end -->
.css
<!-- css start -->
.myAxisStyle1 {
    placement:bottom;
    minorTickPlacement:none;
    tickLength:5;
    tickPlacement:none;
    color:#FFFFFF;
    verticalAxisTitleAlignment:vertical;
    fontFamily: Arial_AFE;
.myAxisStyle3 {
    placement:bottom;
    minorTickPlacement:inside;
    tickLength:5;
    tickPlacement:inside;
    color:#FFFFFF;
    fontFamily: Arial_AFE;
@font-face {
    src:url("font/arial.ttf");
    fontFamily: Arial_AFE;
    embedAsCFF: false;
<!-- css end -->
environment:
flex sdks->4.1.0
chart image:
the font looks like "Arial"
environment:
flex sdks->4.5.1
chart image:
the font looks like "Times New Roman"
Working at flex sdks 4.5.1,
the labelClass can be set to 'spark.components.Label'(defalut) or 'mx.controls.Label',
it seems that we can set labelClass to mx.controls.Label to get the same effect of font of label in ColumnChart when flex sdks->4.5.1
            <mx:AxisRenderer axis="{linearAxis}" showLine="true" showLabels="true" styleName="myAxisStyle1" labelClass="mx.controls.Label">
            <mx:AxisRenderer id="horizonLabel" labelRotation="45" axis="{ch01_a2}" showLine="true" showLabels="true" styleName="myAxisStyle3" labelClass="mx.controls.Label">
but it also causes a memory leak.
1) Can anyone tell me how to show the font of label of ColumnChart correctly (looks like "Arial") when using the labelClass 'spark.components.Label' ?
2) Can anyone tell me how to solve the memory leak when using the labelClass 'mx.controls.Label'?

Hi,
for combobox in a table (I assume the combobox is shown un column 2, thus the index 1)
oracle.jbo.uicli.jui.JUTableLOVEditor lovCellEditor = (oracle.jbo.uicli.jui.JUTableLOVEditor) jTable1.getColumnModel().getColumn(1).getCellEditor();
lovCellEditor.getComponent().setFont(new Font("Arial",Font.BOLD,13));
For the LOV panel this is a bit more complicated because you need to create a custom LOV panel as described in http://www.oracle.com/technology/products/jdev/howtos/10g/jclientlov/customadfjclientlovpanel.html
I filed a bug today to expose the component on a LOV to public so they can be modified
Frank

Similar Messages

  • How to set the Font size of Label?????

    Hello everyone.
    I want to knoe how to set the Font size of the Label???
    Please help..
    Thanks a lot.
    Gloria

    Label myLabel = new Label("Hello World");
    //Font(String name, int style, int size)
    myLabel.setFont(new Font("Arial", Font.PLAIN, 12));

  • How to set the fonts in the user profile(very urgent)

    Hi All,
    Can anyone please tell how to set the fonts in the user profile.
    We have a requirement where currently all the data is being displayed in a font and the user want to change that font permanently.
    I hope you have got the requirement.
    Points will be surely awarded.
    Thank you.

    Hi,
    U can do this in SU02.
    Kishi.

  • How to set the font of a table header?

    Hi,
    Is there a way to set the font of a table header? I do not mean how to change the header word but the font.
    Thanks
    Stephen

    Hi,
    for combobox in a table (I assume the combobox is shown un column 2, thus the index 1)
    oracle.jbo.uicli.jui.JUTableLOVEditor lovCellEditor = (oracle.jbo.uicli.jui.JUTableLOVEditor) jTable1.getColumnModel().getColumn(1).getCellEditor();
    lovCellEditor.getComponent().setFont(new Font("Arial",Font.BOLD,13));
    For the LOV panel this is a bit more complicated because you need to create a custom LOV panel as described in http://www.oracle.com/technology/products/jdev/howtos/10g/jclientlov/customadfjclientlovpanel.html
    I filed a bug today to expose the component on a LOV to public so they can be modified
    Frank

  • How to set the font size on only one object!

    I wonder how i could programmatically set the font size on only one object?
    Igor Stojčević

    Hello,
    You can use the builtin SRW.SET_FONT_SIZE
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/plsql/builtins/srw/srw_set_font_size.htm
    in the Format trigger
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/plsql/triggers/tr_format_trigger.htm
    Regards

  • How to set the font size in JOptionPane?

    I use a JOptionPane.showOptionDialog in a JClient form.
    Can I set the font size of the message in my JOptionPane?
    And also, can I set the location for each component in JOptionPane?

    The best way to do that is to create a seperate panel with its components in it (a JLabel with a specific font setting) and display that panel as the JOptionPane's message.
    As for the OK/Cancel/etc buttons, I don't think you'll be able to rearange them, without hacking into the JOptionPane class' source.

  • How to set the font I wanted in the BI publisher PDF output

    I was refering this forum,
    Font used in RTF template not the same as the PDF generated!
    but the following link i(provided in that forum)s not working
    http://blogs.oracle.com/xmlpublisher/2007/09/25/
    I unterstood , the RTF template font won't come in the BI publsiher generated PDF output . I was trying to set from the 'BI publisher' Admin->Font Mappings.
    There is 2 drop down. If I select ‘Target Font type=TrueType’- the font change is working
    But if I select Type 1, where I can select the ‘real fonts’(such as Courier or Times-Rroman etc) , I cannot even apply the changes. It reverts back to
    'Target Font type=TrueType’ (But I want to select the fonts from Type 1). Can you please let me know how do I do this?
    Thanks in advance
    Kavitha
    Edited by: user6790640 on Mar 29, 2010 12:54 PM

    Is there a reason why you don't use the presentation variables directly to filter the BI publisher report?
    If you use the presentation variables, then ensure that the presentation variables associated with the prompt exactly matches the BIP report parameter name. In this case, you can create another datamodel with a sql that selects the parameters. for example: select :param1, :param2 from dual. In that case, the xml will include the parameter values and you should be just able to insert the param fields in the template.
    Thanks!

  • How to set the font for table view contol

    Dear All,
    My requirement is to set Font type = Arial and size=1 for
    Table View control. The same font should be for  header, Rows and footer.
    One way we are achieving it through the Renderer class. Where in we are we are supplying data, colums with html font tags.
    Is there any simple way to fix font fot the entire TableView.
    Thanks
    Markandeya

    An approach I've used is to override the CSS styles by adding code like the following to the top of the JSP page.  It's a bit of a hack, but it did the job.  You will need to find ALL the styles used in a table view, and override the font size.
    <%-- OVERRIDE SOME CSS STYLES SO WE HAVE THE DESIRED TABLE CELL PADDING --%>
    <style>
    <!--
    .sapTbvCellStd {
         PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
    .sapTbvCellAlt {
         PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
    //-->
    </style>

  • How to set the font that SuperNova will show the text correctly

    I have a problem with the use of Firefox with Supernova. Supernova is a program for visual handicaped people which allows you to enlarge the desktop. When you visit the page
    http://www.raadvanstate.nl/uitspraken/zoeken-in-uitspraken/tekst-uitspraak.html?id=73735&summary_only=
    you will see some orange colored text in the main text block. This is shown correctly. However when I enlarge the screen with Supernova this orange text is barely readable due to the fact that the letters seems to built of dots instead of a smooth line.
    Note that that even happens with this page where I enter these details of the questions. When Supernove enlarges rhe screen, the texts outside the textbox are horrible while the text in this textbox is good.
    I ask this question here because when I use Internet Explorer this problem does not occur.
    I've tried to make a screenprint, but the screenprint functionality doesn't "see" that the screen is enlarged. So when I zoom to 100% with Supernova, the text in the screenshot seems to be okay.
    I realise that this is a difficult issue to reproduce but any help is welcome. Note that enlarging the font with the Firefox options is not a real option for me. Supernova enlarges the complete screen, not only the text on the webpage. This way I'm also able to see the menu's / bookmarks of Firefox itself.
    Thank, you very much,
    Hans

    Thank, you very much. The hardware acceleration caused the problem.

  • How to set the 'other' label?

    I must have known this at one time (or set it by accident), but I can't figure out how to set the other (white) label now...
    Thx,
    R

    areohbee wrote:
    Yeah, I have the usual 5 labels I can set (red, yellow, green, blue, purple - whose names depend on the selected label set), and another called "other" (white) which has been applied to some photos. I can't see how it got applied, and although its easy enough to remove or change it, I can't see how to re-apply it, or apply it to a different photo... Its available for filtering, but I can't see how to set it.
    Right...you can't set it with a button.  You have to change the label field to something *other* than any of the five current labels.  So you can do that manually or you can change sets, set it, and change back.  Try going over to the label field in the metadata panel and typing in "other" or anything other than any of the five current names in the label set you have active.

  • Setting the font of a UITextField control

    I am using a UITextField control to create text offscreen, then I'm using ImageSnapshot to get a bitmap and draw it on the screen using graphics methods. It's working fine, except for one thing: for the life of me I cannot change the font used from Times Roman.
    I've scoured the internet and tried many things, such as using a style (stylename=, not setStyle), trying the setTextFormat function, but nothing works.
    I have a work-around using a label control that is part of the parent container with visible=false, but it is not correctly autosizing as I'd like and there are other issues that crop up in this approach.
    Does anyone know how to how to set the font and get it to be used? Here is a snippet of code:
                        var sizeText : UITextField = new UITextField();
                        sizeText.autoSize = TextFieldAutoSize.LEFT;
                        sizeText.background = true;
                        var textFormat : TextFormat = new TextFormat( "Arial", 13, 0xAAAAAA );
                        sizeText.setTextFormat( textFormat );
                        sizeText.text = "blah";
                        var textBitmapData:BitmapData = ImageSnapshot.captureBitmapData( sizeText );
                        var coef:Number = Math.min( sizeText.measuredWidth / textBitmapData.width, sizeText.measuredHeight / textBitmapData.height );
                        sizeMatrix = new Matrix(coef, 0, 0, coef);
                        textBitmapData = ImageSnapshot.captureBitmapData( sizeText, sizeMatrix );
    Thx in advance, d.

    Maybe but doubtful.  Now that you are using TextField, you must next decide on whether you are using embedFonts or not and set that property correctly.  Next, I would set defaultTextFormat to the same TextFormat you are using for setTextFormat.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Setting the font

    I am trying to figure out how to set the font and this is what I have come up with up so far:
    AIFontKey fontKey;
    error = sAIFont->FindFont( "Arial", kAIAnyFontTechnology, kRomanAIScript, true, &fontKey );
    if (error) throw (error);
    FontRef fontRef;
    error = sAIFont->FontFromFontKey( fontKey, &fontRef );
    if (error) throw (error);
    IFont iFont( fontRef);
    features.SetFont( iFont);
    I am not sure if I am doing this correct. I took most of this code form another post, but was  not sure how to implement the code.
    I am trying to set the font and am using the below code to set the font size and the position of the text:
    ATE::IParaFeatures justif;
    ATE::ICharFeatures features;
    justif.SetLeadingType(ATE::kRomanLeadingType);
    justif.SetStartIndent(kAIRealZero);
    justif.SetFirstLineIndent(kAIRealZero);
    features.SetTracking(kAIRealZero);
    //Justification.
    justif.SetJustification(kCenterJustify);
    //Size
    features.SetFontSize(10);
    AIArtHandle artGroup = NULL;
    error = sAIArt->GetFirstArtOfLayer(NULL, &artGroup);
    aisdk::check_ai_error(error);
    // Add the new point text item to the layer.
    AITextOrientation orient = kHorizontalTextOrientation;
    AIRealPoint anchor = {this->fEndPoint.h,this->fEndPoint.v-4};
    AIArtHandle textFrame = NULL;
    error = sAITextFrame->NewPointText(kPlaceAboveAll, artGroup, orient, anchor, &textFrame);
    aisdk::check_ai_error(error);
    // Set the contents of the text range.
    TextRangeRef range = NULL;
    error = sAITextFrame->GetATETextRange(textFrame, &range);
    aisdk::check_ai_error(error);
    ITextRange crange(range);
    crange.SetLocalCharFeatures(features);
    crange.SetLocalParaFeatures(justif);
    crange.InsertAfter("X");
    Any help would help thanks daniel

    Okay, here is what I decided to do...it is lame, but it works. Thanks for the help. : )
    char buf[250], fonttext[500];
    short forfont;
    long fontCount = 0;
    int font_value;
    error = sAIFont->CountFonts(&fontCount);
    //char buffer[sizeof(long)*8+1];
    //MessageBox(NULL, ltoa(fontCount, buffer, 10), "Font Num", 0);
    aisdk::check_ai_error(error);
    for (int i = 0; i < fontCount; i++)
    // Report each font name to the log.
    AIFontKey fontKey = NULL;
    error = sAIFont->IndexFontList(i, &fontKey);
    aisdk::check_ai_error(error);
    error = sAIFont->GetUserFontName(fontKey,fonttext,forfont);
    if(strcmp(fonttext, "Arial Bold") == 0)
    font_value = i;
    break;
    else
    font_value = -1;
    aisdk::check_ai_error(error);
    FontRef fontRef;
    AIFontKey fontKey = NULL;
    //For instance, 10 is a number of the font in the font list.
    error = sAIFont -> IndexFontList(font_value, &fontKey );
    error = sAIFont -> FontFromFontKey ( fontKey, &fontRef );
    ATE::IFont iFont( fontRef );
    features.SetFont( iFont );

  • How to set custom font family in qml label in black berry 10 os

    how to set custom font family in label text  qml in black berry 10 OS

    AFAIK, this is not the correct way to set the image location.
    We call the working directory as context, so inside the context root along with WEB-INF, maintain a folder with name img and put all the images in that directory.
    You can use either .\<image_folder> or the optimum way would be (if you are using JSPs) to use getContext() method and traverse accordingly.
    FYI,,, using getContext() will give you context root directory, from there it is as simple as accessing any other folder.
    Hope this answers your question.
    Cheers,
    Jeets.

  • How to set the BARCODE width and length for label printing..

    Hi All,
    How to set the Code 39 barcode label format in the sizxe of 0.20" * 1.4". By default while printing barcode size exceeds my current requirement. Please let me know to customize the size of barcode labels.
    Thanks.

    I don't know what you mean by "Code 39" because my Output Designer software doesn't offer that barcode (or do you mean "code 3 of 9?). In any case, are you trying to control the size of the text (which is what I think of when you refer to "label")? If you are, then just change the font & size. If you are wanting to modify the physical characteristics of the barcode itself (height & length for a certain number of characters) then you are probably out of luck. Or at least in for some trial & error.
    There are a series of "barcode.xxx" files in the 'config' folder where Output Designer was installed to. These are text files that contain the physical characteristics of the various barcodes for various printers. The parameters that you would be interested in is the height and width of the bars (black & white). For example, a barcode might be defined as .400 high with narrow bars 3 "dots" wide, wide bars 9 "dots" wide and white space the same or different. Presumably changing these values would affect the generated barcode. For example, in this example the wide bars are 3 times the width of the narrow bars so I would assume that relationship would have to remain. To make the resulting barcode shorter you would then use 2 for the narrow and 6 for the wide.
    You would have to make the change in the file(s) that would be used for your printer(s).
    There are four width values for each of the parameters. Most of the barcodes only use 2 but some have 4. I'm assuming that when there are 4, like in "4 8 12 16", that the barcode definition has 4 different widths of bars and/or spaces.
    There is no guarantee that the scanning hardware & software will "see" and interpret the resulting barcode correctly.

  • Formatting issues: when I open a msg, the font is sooo small you need a magnifier to read it. How can I set the font size to one I can easily read?

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    I have various formatting issues:
    a. When I open a msg from my web browser (Cablevision), the font is sooo small I need a magnifier to read it. How can I set the font to a size I can easily read?
    b. When I forward msgs, the text gets all distorted and I need to clean it up (some symbols, lots of spaces between words). How can this be fixed?
    c. When I want to tell someone about a website, I cannot type the URL in so that all they have to do is click on it. How can this be fixed?
    d. When I open messages, the text opens in a small window and covers the "Show Images" button. Why?
    == This happened
    ==
    Every time Firefox opened
    == Ever since I started using Firefox (a few months ago)
    ==
    '''Troubleshooting information'''
    I didn't find any results
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows 7
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
    == Plugins installed
    ==
    *-nphpclipbook
    *Office Plugin for Netscape Navigator
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *Default Plug-in
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *NPRuntime Script Plug-in Library for Java(TM) Deploy
    *The Hulu Desktop Plugin allows Hulu.com to integrate with the Hulu Desktop application.
    *Shockwave Flash 10.0 r45
    *Adobe Shockwave for Director Netscape plug-in, version 11.5
    *iTunes Detector Plug-in
    *3.0.40624.0
    *NPWLPG
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers

    The text editor is the text area that you use on the webmail (Yahoo, Hotmail) website to create a new mail.
    You can compare that with the ''Post new message'' text area that you use to create a new post on this forum.
    Just above the text area that you use to enter the message text there is usually a button bar with buttons that allows some text formatting like Bold and Italic and can also include a button to make a clickable hyperlink.
    Check the tooltip of each button by hovering with the mouse over each button.
    Make Link - https://addons.mozilla.org/firefox/addon/142

Maybe you are looking for

  • Olap variable in infopackage

    SDN, My question is the OLAP variable used at infopackage levl. Is that variable got entry when queri runs or from where it gets value? I didn't understand this I'm just confused in this regards. why olap variable(BEX varialbe ) at ip level pls could

  • No AVCHD thumbnails in Elements Organize

    Hi, Can anyone help me here as I cannot see any thumbnails relating to AVCHD files in Organize ( Version 8 ) yet I can see them, once I manually update them, in Premier Elements 8. They are all just blank purple. I can see all my other non-AVCHD file

  • Creative cloud will NOT let me sign in.. no matter what I do! help please ASAP!!!

    hello.... I cannot sign in to creative cloud.. I have tried everything and i mean everyting possible i could find! I deleted the  olb file, i have deleted the application and everything with it and nothing is working! I really need some help here ASA

  • Migration to smartview API

    Hello Everyone      I've a piece of code where Essbase add-in functions are used, I want this piece of code to be replaced with the SmartView functions. I've come across a function EssVSetSheetOption to which parameters given are as below x = EssVSet

  • Text to be transfered from PO to Delivery

    Hi Experts, In CSTO process,I have to get the text from STO line item (in ME21N) to Delivery line item (VL01N). Can any one suggest proper text types and text procedures and assignments that are to be done in VOTXN. Babu.P