1

I am making a software for a local race of the country. The customer intends to use their own font. I have embedded it in fxml. The directory structure:

enter image description here

I have loaded it in CSS file:

@font-face {
   font-family: 'NamKhoneUnicode';
   src: url('NamKhoneUnicode_v2.0.ttf'); 
}
#txtWord {
    -fx-font-family: 'NamKhoneUnicode';
}

And my sample FXML:

<TextField fx:id="txtWord" HBox.hgrow="ALWAYS" text="မၢၵ်ႇၵႅမ်ႈၶွင်ႇ" />

The result is:

enter image description here

Seems like there are additional dotted rounds. What might be the cause of these? The font may be unicode.

M. Ko
  • 563
  • 6
  • 31

0 Answers0