5
A
답변
-1
올바른 방향으로 가리킬 지 궁금합니다. 나는 글꼴 또는 텍스트 클래스에 이것에 대한 CSS 속성이나 방법을 찾기 위해 노력했습니다
특히 문자 간격에 대한이 기사 회담 ...
package addingfontinstyle;
import javafx.scene.effect.DropShadow;
import javafx.scene.effect.GaussianBlur;
import javafx.scene.effect.light.DistantLight;
import javafx.scene.effect.light.SpotLight;
import javafx.scene.effect.Lighting;
import javafx.scene.paint.Color;
import javafx.scene.Scene;
import javafx.scene.text.Font;
import javafx.scene.text.FontWeight;
import javafx.scene.text.Text;
import javafx.scene.text.TextOrigin;
import javafx.stage.Stage;
Stage {
title: "Text In Style"
width: 450
height: 500
scene: Scene {
content: [
Text {
effect: DropShadow {
offsetX: -10
offsetY: -10
}
font: Font {
name: "Arial"
letterSpacing: 0.20
size: 50
}
fill: Color.YELLOWGREEN
stroke: Color.GREEN,
strokeWidth: 3
x: 15,
y: 80
content: "Hello World"
},
Text {
effect: Lighting {
light: DistantLight {
azimuth: -135
elevation: 30
}
surfaceScale: 5
}
x: 10
y: 200
content: "Hello World"
fill: Color.RED
font: Font {
name: "Arial Bold"
letterSpacing: 0.20
size: 50
}
},
Text {
effect: Lighting {
light: SpotLight {
x: 0
y: 100
z: 50
pointsAtX: 400
pointsAtY: 0
pointsAtZ: 0
specularExponent: 2
}
surfaceScale: 5
}
textOrigin: TextOrigin.TOP
x: 10
y: 300
content: "Hello World"
fill: Color.RED
font: Font {
name: "Arial Bold"
letterSpacing: 0.20
size: 50
}
},
Text {
effect: GaussianBlur {
}
x: 10
y: 400
content: "Hello World"
fill: Color.GREEN
font: Font {
name: "Arial Bold"
letterSpacing: 0.20
size: 50
}
}
]
}
}
정보 here를 ... 발견 . –
공개 문서에 [JavaFX 2 Text] (http://docs.oracle.com/javafx/2/api/javafx/scene/text/Text.html)가 없습니다. 제안 된 [Java 8 TextFlow ] (http://download.java.net/jdk8/jfxdocs/javafx/scene/text/TextFlow.html). [이슈 트래커] (http://javafx-jira.kenai.com)를 확인하고 필요한 경우 새로운 기능 요청을 만드십시오. – jewelsea
이 기능을 요청하려면 https://javafx-jira.kenai.com/browse/RT-36099를 만들었습니다. 이 기능을 JavaFX에 추가하려면 투표하십시오. – axiopisty