Forum Replies Created
-
AuthorPosts
-
you can remove those lib keys from the glyph lib:
com.fontlab.v2.tth com.fontlab.ttprogram
be careful, the data will be lost. Converting the ufo back to vfb will not be able to restore the removed hinting data.
He
Im not sure what you mean by hinting inside a ufo file?
there is some hinting data stored in the font.lib and glyph.lib by vfb2ufo
RoboFont doesnt show postscript hints and is not using that data to compile a binary…
oh, here is an example, it is required to install the drawBot extension, get it here: https://github.com/typemytype/drawBotRoboFontExtension
import drawBot from drawBot.ui.drawView import DrawView from vanilla import * class Test(object): def __init__(self): self.w = Window((400, 400), minSize=(200, 200)) self.w.s = Slider((10, 10, -10, 22), minValue=10, maxValue=100, value=50, callback=self.sliderCallback) self.w.c = DrawView((10, 40, -10, -10)) self.w.open() def sliderCallback(self, sender): value = sender.get() # start a new drawing drawBot.newDrawing() # add a page drawBot.newPage(100, 100) # draw something drawBot.rect(10, 10, value, value) # get the pdf data pdf = drawBot.pdfImage() # set the pdf data in the canvas self.w.c.setPDFDocument(pdf) Test()
good luck!
Hi Andrew
you added those kerning values inside RoboFont, with the Kern Center?
You created the groups?I cannot reproduce this issue, could you send me a erroneous ufo file?
Hi Roberto
In your example you don’t have a canvas object that is able to show drawing callbacks.
Please see the example http://doc.robofont.com/api/mojo/mojo-canvas/
The slider just tells the canvas object to redraw itself. While getting a draw callback some drawBot methods are called to draw something into the canvas
hope this helps
good luck!
This is an know issue and already solved in the closed-beta.
thanks
oh, I guess changes in the os…
It seems this opens the window after the script is done.
Pretty annoyingfrom vanilla import * import time w = Window((250, 70)) w.p = ProgressBar((10, 10, -10, 22), maxValue=20) w.p.start() w.open() for i in range(20): time.sleep(.05) w.p.increment()
September 7, 2015 at 19:54 in reply to: Copying glyphs from a ufo (generated with vfb2ufo) to another ufo (empty) #6188This is solved in the current beta….
I could send you a beta version to test it out, if you wish
please contact me by mailthanks
This is been solved already in the beta of the upcoming 1.7 release
I would not recommend to fiddle around in the zipped site packages (fe: the code signing will be broken)
can you send me a personal email? I guess this fixed in the upcoming release, where a newer fontTools is embedded. The xmlWriter packages has been moved around several times (not so nice) but this is resolved (see https://github.com/behdad/fonttools/issues/190)
thanks
Hi
What concerns me a little bit is the different path to the xmlWriter, why it using an other one then the one embedded in RoboFont?
Did you install something specific? or changed some files in the package?FontTools is embedded in RoboFont and I would not advice to use an other version, as many things changed between versions of FontTools…
The same goes for roboFab and ufo2fdk, both packages are embedded in RoboFont.You can install those packages if you need them outside RoboFont but internally I would not change the content of any package.
how did you install ufo2otf? from inside RoboFont or did you use terminal?
Hi Bernardo
you can order the tools in a glyph window
see https://github.com/typemytype/RoboFontExamples/blob/master/UI/toolOrderer.py
FYI: this example script moved to the preferences window in the upcoming 1.7 release
Im aware of that option and this will be implemented, but still there is something wrong with the provided date to the binary ttf compiler…
weird,
shutil.rmtree
must be able to remove a directory that is not empty.but the file size is zero of that compile.otf file
I guess something went wrong while generating, you can print out
font.generate(...)
to see what or where it failedgood luck!
if you want to receive those notifications, just add this .py file to the start up scripts in your preferences. This doesn’t effect performance, unless to your part of the code, what is been executed when the notification is been send, takes a while.
-
AuthorPosts