JavaFX ignores weight and style from custom fonts
<p>When I make javafx load a font with a code like this:</p>

<pre><code>font = Font.loadFont(getClass().getClassLoader().getResource("gui/font.ttf").toExternalForm(), 25);
</code></pre>

<p>and, after it has successfully loaded, apply it to a Text</p>

<pre><code>text.setFont(font);
</code></pre>

<p>the text shows the right font BUT, when I try to apply to it some styles or weights like </p>

<pre><code>text.setStyle("-fx-font-weight: bold;");
</code></pre>

<p>or</p>

<pre><code>text.setStyle("-fx-font-style: italic;");
</code></pre>

<p>Nothing changes.
I've tried this even with the SceneBuilder and It doesn't work there too.
What can I do to make java load my font WITH all the styles and weights (or, at least, make it try to derive them)?</p>

<p>EDIT: fount used: <a href="http://www.dafont.com/peque-script.font" rel="nofollow noreferrer">Peque Script</a> (I know, 5 minutes ago it wasn't in maintenance)
Some other fonts found online like <a href="https://www.dropbox.com/s/844v64a9d8m40zm/minecraftfont.woff?dl=0" rel="nofollow noreferrer">this</a> or <a href="https://www.dropbox.com/s/alt49zdl5ee2se3/minecraftia.ttf?dl=0" rel="nofollow noreferrer">this</a></p>