geomerative icon indicating copy to clipboard operation
geomerative copied to clipboard

About Font

Open knupel opened this issue 6 years ago • 2 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 ?

knupel avatar May 09 '19 16:05 knupel

Sorry I close I found my track its org.apache.batik.svggen.font.Font

knupel avatar May 09 '19 16:05 knupel

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 !

Capture d’écran 2019-05-10 à 14 43 15

knupel avatar May 10 '19 12:05 knupel