About Font
knupel opened this issue · comments
Hello I try to understand how work the Font part of Geomerative, but I've a problem with few method from Font
like Font.create()
or Font.getNameTable()
.
I don't found those methodes in class SVGFont
from Batik, but I found no track in the class class RFont
too, and no track in class Font
, and no track in Google
There is a magical trick for that ?
Sorry I close I found my track its org.apache.batik.svggen.font.Font
I try to make my own Batik Font, but I cannot manage how that's work, when I try to write
String font_path = "/Users/.../.../Automaton Caps Light SSi Light.ttf";
font = org.apache.batik.svggen.font.Font.create(font_path);
the font is null, when I try to like in your library
public RFont(String fontPath, int size, int align) throws RuntimeException{
// Try to find the font as font path
byte[] bs = RG.parent().loadBytes(fontPath);
f = Font.create(bs);
It's return I cannot use byte []
like write in the javadoc https://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/svggen/font/Font.html, so I don't understand how that's can work for you and why that's don't work for me... I'm sorry to use this channel to ask my question, but Batik system is not really documented on the web :(
Vous êtes mon seul espoir, alors si vous avez un peu de temps à m'accorder je suis preneur !