JavaFx dynamic font change

I have this UI in JavaFX.

On selecting a font name from the drop down menu text below should be displayed in a custom font style that I am setting through code like this .

fontList.getSelectionModel().
selectedItemProperty() .addListener(new ChangeListener<String>() {
   @SuppressWarnings("rawtypes") 
   @Override 

   public void changed(ObservableValue ov , String oldValue , String newValue) { 

      myText.setText(""); 

      if (newValue.equalsIgnoreCase("Manuscript")) { 
           myText.setFill(Color.RED);
           myText.setFont(Font.loadFont(
              "file:///C:/Program Files/custom/Fonts/SWFNT01A.TTF", 35)); 
           myText.setText("StartWrite Desktop"); 
      } 
});

myText is the name of the text field javaFx component. The font file is in my resources folder.

The output is barely legible . At first I thought that since the custom font is not installed that is the reason that the text is so hazy . But after I installed the custom font the text is still hazy and has not changed a bit.

Please tell me what is wrong with this approach.