Skip to Main Content

Japanese

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

CSSで文字フォントが「MS ゴシック」の際に太字にならない

2802991Nov 28 2014 — edited Feb 16 2015

FXMLで配置したコントロールに、CSSで文字フォントを「MS ゴシック」にした状態で、太字を指定(-fx-font-weight:bold;)しても太字になりません。

文字フォントを他のフォント(例:-fx-font-family:"Meiryo";)にすると太字になります。

MS ゴシックの場合に太字にならないのは仕様でしょうか。

↓設定しているCSS

/* ボタン*/

.button {

/* 背景色 */

  -fx-background-color: #969696, #333333, #969696,

    linear-gradient(to bottom, derive(#ffffdd,10%), derive(#ffffde,-15%));

    /* 背景マージン */

    -fx-background-insets: 0 0 -1 0, 0, 0.5, 1;

    /* 角丸 */

    -fx-background-radius: 5, 5, 4, 3;

    /* パディング */

    -fx-padding: 0.05em 1.5em 0.05em 1.5em;

    /* 文字色 */

    -fx-text-fill: #000000;

    /* 文字位置 */

    -fx-alignment: CENTER;

    /* フォントサイズ */

    -fx-font-size:14px;

    /* フォント名 */

    -fx-font-family:"MS ゴシック";

  /* フォント幅 */

    -fx-font-weight:bold;  ←※効いていない。。。(-fx-font-family:"Meiryo"なら有効)

    /* 境界線スタイル */

    -fx-border-style:solid;

    /* 境界線サイズ */

    -fx-border-width:0;

}

よろしくお願い致します。

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 16 2015
Added on Nov 28 2014
1 comment
3,468 views