rikrd / geomerative

Geomerative is a library for Processing. It extends 2D geometry operations to facilitate generative geometry. Includes a TrueType font and an SVG interpreters. This library exposes the shapes (such as vector drawings or typographies) in a more approchable way. Geomerative makes it easy to access the contours, the control points and the curve points, making it easy to develop generative typography and geometry pieces in Processing.
http://www.ricardmarxer.com/geomerative
GNU General Public License v3.0
176 stars 29 forks source link

About Font #11

Open knupel opened 5 years ago

knupel commented 5 years ago

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 commented 5 years ago

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

knupel commented 5 years ago

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