<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">If I run the following code (on macOS), I get no useful information.<div class=""><br class=""></div><div class=""><pre style="background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 9pt;" class="">Font[] fonts = ge.getAllFonts();<br class=""><span style="color:#000080;font-weight:bold;" class="">for </span>(Font f : fonts) {<br class=""> String family = f.getFamily();<br class=""> <span style="color:#000080;font-weight:bold;" class="">if </span>(<span style="color:#008000;font-weight:bold;" class="">"Lato"</span>.equals(family)) {<br class=""> Map<TextAttribute,?> attributeMap = f.getAttributes();<br class=""> Object o = attributeMap.get(TextAttribute.<span style="color:#660e7a;font-style:italic;" class="">WEIGHT</span>);<br class=""> System.<span style="color:#660e7a;font-style:italic;" class="">err</span>.println(f.getFontName() + <span style="color:#008000;font-weight:bold;" class="">": " </span>+ o);<br class=""> }<br class="">}<br class=""></pre><div class="">The only attributes with non-null values are the family (which is wrong, it is the font name, e.g. Lato-Black) and the size (which is 1, as expected).</div></div><div class=""><br class=""></div><div class="">I know that other information is available, but is there a way to get it using public APIs?</div><div class=""><br class=""></div><div class="">If not, why not?</div><div class=""><br class=""></div><div class=""> Alan</div><div class=""><br class=""></div></body></html>