Can't apply -fx-font-weight: bold;

Hi. I'm trying to apply this style to Labels :
.label {
-fx-text-fill: gray;
-fx-font-weight: bold;
The gray fill is ok , but bold weight doesn't work.
I'm using MacOS JavaFX 2.1 b17.
Am i doing something wrong ?
thanks
Edited by: mschoenfelder on 2012-03-22 11:27

I can't reproduce this, the -fx-font-weight:bold style works fine for me when set either in code via setStyle or in the exact same external stylesheet you supplied (WinXPsp3, JavaFX 2.1b17, JDK7u4ea).
My guess is either:
1. It is a Mac specific bug.
2. The default font used by JavaFX on the Mac does not support bold (seems really unlikely).
3. You are not copying the correct version of your stylesheet to the binary output directory you are running the application from (most likely).
4. You are not correctly loading the required stylesheet.
5. You are otherwise overwriting the style somewhere else.

Similar Messages

  • How can I change breadcrumb font to bold?

    Hi -- I need to change the font on all (current and non) breadcrumb entries to bold. I tried the folliowing in the template
    (for now, just in the current page breadcrumb entry) but it's not doing anything. I added the:
    <style type="text/css">font-weight:bold</style>
    <li class="t15Current"><span>#NAME#</span><style type="text/css">font-weight:bold</style></li>
    It shows up in the page source, no errors are generated. I've also tried it within the <span> tags.
    I know it must be an easy fix!
    Thanks,
    Carol

    Ooop, well, I can see that this didn't post correctly. Not sure what markup to use... here's a kludge:
    li class="t15Current"><span>#NAME#</span><style type="text/css">font-weight:bold</style></li>
    Assume "<" to start with.

  • Why Adobe CC software can only show regular font weight for some fonts?

    Why Adobe CC software can only show regular font weight for some fonts?
    I can use those fonts in different font weights in the CS3 in the same computer; however it doesn't work on CC.
    Anyone can help~

    And have you applied the patch at Crash | Launch, selecting Type tool?

  • Font-weight:bold;  - works in firefox, safari, internet explorer 6 BUT NOT ie7

    font-weight bold; on an external css style sheet is working in every browser (INCLUDING ie6) but NOT ie7?
    I just don't get it. It even works in ie6.
    NOTE:   One thing I should mention is that I have a conditional Internet Explorer statement, for a Internet Explorer-specific style sheet that targets ie6 and ie7.
    But I don't think that's the issue because every other style is working properly EXCEPT font-weight:bold. This is absolutely maddening.
    I tried searching around for solutions and the only lead i found was writing  [  font-weight:bold !important;  ]  using that '!important' statement I thought would somehow force ie7 to acknowledge it. But no dice. It failed.
    Here is the accursed code:
    #date {
    font-family: Arial, Helvetica, sans-serif;
    font-weight:bold !important;   /*   bold not showing up in ie7 !!!  */
    font-size:.85em;   /*  Is font-size affecting bold in ie7 ?? - was 85%  */
    color:#000000;
    text-transform:uppercase;
    margin-bottom:-.75em;
    margin-top:6em;
    Again, it works in every browser, including ie6...BUT NOT in IE7.
    Any help will keep me from pulling my hair out. Thanks.

    So it's still not BOLD in ie7.
    - My css is validated.
    - My HTML still shows 19 errors with 3 warnings, which is down from 31 errors with 3 warnings.
    • Although most of these errors are directly from the 'Active Content' JavaScript that Dreamweaver places within your HTML when you insert Flash SWF files on your page. So I don't think I can even correct that.
    • The next series of errors concern the P element. Which I think are because in 5 Paragraphs in a row, I gave them each the same relationship attribute (rel="lightbox[blog02]"). Why else would these paragraphs come up as errors when every other paragraph is perfectly fine? The errors the validator says are happening, aren't happening. It says that certain P tags aren't closed and it's not true, I can see with my own eyes that they are. I think the 'rel' values are confusing the validator?
    All the major errors I took care of though. I replaced all the repeating ID attributes with CLASS attributes. I really thought that would have done it, but no. However, at least I'm no longer getting ID errors when attempting to validate.
    So now I'm stumped.
    I have no clue what to do next with something I thought would be so simple. I mean give me a break. I'm just trying to BOLD a line of text...smh.
    So currently every browser, including the illicit ie6, shows the BOLD...BUT NOT IE7.
    Sorry for the all caps, it's just so ridiculous to me.
    Although I learned that validating your styles and sites is an important step in publishing your site. I also learned how to properly use ID and CLASS attributes.
    However if anyone out there can point me in the right direction, it would still be very much appreciated. Thanks.

  • Explorer ignores font-weight:bold

    Hello,
    I can't solve this problem: when I set font-weight: bold on my CSS to ul#nav li#home a, Internet Explorer doesn't show me the bold style, while Firefox does.
    Thanks!
    Daniela

    The fonts you can safely use on your web page (without taking special action) are pretty limited, since you can only be sure that your visitor has a very limited set of fonts. If you use a font that your visitor doesn't have installed, then they will not see your font. Instead they will see a system default font. That's probably not what you intended. Google "web safe fonts" to read more about this.
    If you have this in your code -
    <li id="home"><a href="whatever.html">Whatever</a></li>
    Then the CSS necessary to make that particular link appear bold is this -
    li#home a { font-weight:bold }
    If you have done this, and you are not seeing a bold font, then either you entered to code incorrectly, or there is some other CSS rule that is taking priority over this one. We can only know if that is the case by looking at your code/page.

  • Can we apply embedded font in extension to a text layer of Photoshop ?

    Hi All,
    I have embedded some fonts into my Flex extension panel of Photoshop.
    Can I apply these fonts to any text layer?
    Kindly help URGENTLY!
    Thanks,
    D.A

    Here are 3 options for future reference:
    1. With the setup you've described, apply a Match Move behavior to  the text and make the rectangle the source. Change the Transform parameter to Mimic source.  This way you can still adjust the text postion as needed, but the rectangle will drive the animation.
    2. Use a group to do the animation.  Put both your rectangle and text in the same group and animate the group's postion.
    3. Use the Link behavior.
    Each of these has it's advantages depending on what you need.

  • Save svg with font-weight:bold rather than a bold font?

    Illustrator is changing the font in my svgs to Arial-BoldMT, which causes it to publish incorrectly (doesn't show up bold).
    When I change the svg code to ArialMT; font-weight:bold, it publishes correctly. Any idea how to have Illustrator save the svgs with the font-weight:bold attribute so I don't have to change it in the code?
    Thanks for your help.

    Out of curiosity may I ask why you are using svg, is this for mobile devices.
    Try uninstalling Arial-BoldMT on your system.
    Also see:
    http://help.adobe.com/en_US/illustrator/cs/using/WS714a382cdf7d304e7e07d0100196cbc5f-6561a .html

  • Can you adjust Typekit font weight?

    So I've figured out how to use all Typekit fonts in Muse (by assigning ".body" as a selector in the Typekit Editor and then assigning "body" as a paragraph style in Muse). The only problem is that I am limited to two weights per font: regular (or thin or light or extra light) and bold (which works by just bolding the text in Muse).
    This means if I use a font with many different weights (thin and light, say) I have to choose one or the other in the Typekit editor and can't use both on my site. Has anyone figured out a workaround for this?

    Hi ibhhvcc,
    Right now, there's not an easy way to do this in Muse. Editing the CSS files that come from Muse would allow you to use other weights/variations but of course this involves diving into the code.
    Going forward, we plan to improve the Typekit/Muse integration and I'll definitely share your thoughts with the team.
    If you have any further questions or feedback, feel free to drop us a line at: [email protected]
    Cheers,
    Benjamin

  • How do I change the font to bold for a label in a check box item

    I am having no success with this and my internet searches throw me all over the place with no success. Can someone please explain how to change fonts for items in the most simple and basic terms. Thanks

    Use HTML Form Element Attributes and type there something like style="font-weight:bold" or Form Element Option Attributes and class="fielddatabold". See my demo app for that:
    https://apex.oracle.com/pls/apex/f?p=31517:1
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Different font weight for certain table rows in a tableView

    Dear all,
    I Need to add a summary row in a TableView to calculate the sum of all values above this row. For every row I have an object, called KostenDTO.
    class SummCurrencyTableCellFactory implements Callback, TableCell> {
         private NumberFormat numFormat = null;
         public SummCurrencyTableCellFactory(NumberFormat numFormat) {
              this.numFormat = numFormat;
         @Override public TableCell call(TableColumn param) {
              TableCell cell = new TableCell() {
                   @Override public void updateItem(final Float item, boolean empty) {
                   if (item != null) {
                        setText(numFormat.format(item));
                        setStyle("  -fx-alignment: CENTER-RIGHT;");
                        if (item < 0.0) {
                             this.setTextFill(Color.RED);
                        } else {
                             this.setTextFill(Color.BLACK);
                  } else {
                        setText("");
         return cell;
    how can I Change the font weight of the sum-row to bold?
    Thank you and regards Tim

    You can do
      String fontWeight ;
      if (getIndex() == getTableColumn().getTableView().getItems().size()-1) {
      fontWeight = "-fx-font-weight: bold;";
      } else {
      fontWeight = "-fx-font-weight: normal;";
      setStyle("-fx-alignment: CENTER-RIGHT;\n" + fontWeight);
    in the updateItem(...) method, assuming the sum row is the last row in the table.

  • Apply different font styles in single text frame

    hi all
    how can i apply different font styles in a single text frame using indesign script ?
    for example :
    "dasdnasndasndlasndnasdlasdasdas"
    may i know is it possible to do that and how to do that ?
    thanks

    You can set (as well as read) every single property of any text range with scripts. This is javascript; it assumes you text cursor is inside a frame with some text.
    * Setting some specific characters to a color:
    app.selection[0].parentStory.characters.itemByRange(5,10).fillColor = "Red";
    * Change the font of words:
    app.selection[0].parentStory.words[3].appliedFont = "Arial\tBold";
    * .. or just the style:
    app.selection[0].parentStory.lines[2].fontStyle = "Italic";
    * .. or any other attribute (this one requires you to have at least 5 characters selected):
    app.selection[0].characters[5].underline = true;
    Of course these operations are not limited to something you select; they work the same with any text frames you can refer to.
    app.activeDocument.textFrames[1].paragraphs[2].appliedCharacterStyle = "charstyle";

  • Set font to bold

    Dear all,
    Can I set a font to bold in ABAP Report if don't using SAP Script?
    Thanks you
    John

    You can have colors set, and intensified but no BOLD in reports.
    Eg:
    1.FORMAT INTENSIFIED INPUT.
    WRITE 5 'JOHN'.
    FORMAT INPUT OFF.
    2. Addition 1
    ... COLOR n [ON] or ...COLOR OFF
    Color of line background . n can have the following values:
    OFF or COL_BACKGROUND Background
    1 or COL_HEADING Headers (grayish blue)
    2 or COL_NORMAL List body (bright gray)
    3 or COL_TOTAL Totals (yellow)
    4 or COL_KEY Key columns (bluish green)
    5 or COL_POSITIVE Positive threshold value(green)
    6 or COL_NEGATIVE Negative threshold value (red)
    7 or COL_GROUP Control levels (violet)
    Reward me if its helpful.
    Regards
    Ravi

  • Convert the Regular font to Bold

    When i used the resident cartridges lexjapan or lexkorea the bold option is not available. So i used the .L4 files of lexjapan/lexkorea, renamed them (lexjapan(bold)) and set the Bold property to 1 and selected this cartridge in the presentment along with lexjapan.
    Now the bold option is enabled but there is no difference between the regular font and bold font.
    I think this is because though the property is changed the fontwidths are not changed in the .L4 file.
    Can anyone please tell me how can i set the font to bold for fonts where the bold propery is not set.

    When i used the resident cartridges lexjapan or lexkorea the bold option is not available. So i used the .L4 files of lexjapan/lexkorea, renamed them (lexjapan(bold)) and set the Bold property to 1 and selected this cartridge in the presentment along with lexjapan.
    Now the bold option is enabled but there is no difference between the regular font and bold font.
    I think this is because though the property is changed the fontwidths are not changed in the .L4 file.
    Can anyone please tell me how can i set the font to bold for fonts where the bold propery is not set.

  • Normal font looks bold. How can I make it look normal?

    Hi.
    Installed the latest build from webkit.org yesterday and finally got the missing text to be visibla again.
    BUT... Normal (text) fonts as set in:
    font-weight: normal;
    does not look normal... they look like a bold font.
    What is the reason for this behaviour?
    Can I fix that by changing some settings or do I have to wait for another release of the Safari 3 Beta for windows?

    So there isn't any difference between OOO and OOO?
    If there's a difference then it's probably Safari's Font smoothing that make it look like its bold. Try to change it to light instead of medium;
    Go to Edit > Preference > Appearance -> Font smoothing
    Hope it helps,
    Emil
    Good luck
    PC   Windows XP Pro  

  • I have Firefox 9.0.1, and a few days ago my font became Bold, I am using Times New Roman, this seems to be also the case in IE, but the Chrome is not affected, also the fonts in my Word are fine, how can I fix this problem? Thanks!

    Firefox 9.0.1,
    When i write in the search box on Google the font is bold and on some website it is bold also in the gmail but on other sites it is fine.
    Please let me know how can I fix this.

    So, you do not see any fonts bold that shouldn't be bold?
    What are your current default font settings?
    If you have increased the minimum font size then try the default setting "none" as a (too) high value can cause issues.
    *Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    Make sure that you allow websites to choose their fonts.
    *Tools > Options > Content : Fonts & Colors > Advanced > [X] "Allow pages to choose their own fonts, instead of my selections above"
    *https://support.mozilla.org/kb/Changing+fonts+and+colors
    It is better not to increase the minimum font size in case you need a larger font, but use an extension to set the default page zoom to prevent issues with overlapping text.

Maybe you are looking for