Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Ramiro Espinoza

About

Username
Ramiro Espinoza
Joined
Visits
6,043
Last Active
Roles
Member, Moderator, Type Person
Points
389
Invited by
Florian Hardwig
Posts
558
  • Re: How do you practise?

    http://typecooker.com is good for training. And it's fun. 
  • Re: Color will be the new Italic. Color will be the new Bold.

    "Extraordinary claims require extraordinary evidence". Carl Sagan.
  • Re: TypeSnitch Project Update

    @James Montalbano Can you elaborate on your statement?

  • Simple script: Find and complete real ascender and descender values in all open fonts

    Hi there,

    This script will find the highest and lowest Y values in all open fonts (typically a family) and use them to fill the OpenType specific font metrics values. Works in Fontlab + Robofab (and probably Robofont too).



    #FLM: ReType Complete Real Asc/Desc V2.0
    # Find and fill real asc and desc values in all open fonts 
    from robofab.world import CurrentFont,AllFonts
    
    
    max_Y_values = []
    min_Y_values = []
    
    
    for font in AllFonts():
    	for x in font:
    			max_Y_values.append(x.box[3])
    			min_Y_values.append(x.box[1])
    
    WinAscend = max(max_Y_values)
    WinDescend = min(min_Y_values)
    Ascender =	font.info.ascender 
    Descender =	font.info.descender
    Gap =  (Ascender + abs(Descender)) - (WinAscend + abs(WinDescend)) 
    
    for font in AllFonts():
    	font.info.openTypeOS2WinAscent = WinAscend
    	font.info.openTypeOS2WinDescent = abs(WinDescend)
    	font.info.openTypeOS2TypoAscender = Ascender
    	font.info.openTypeOS2TypoDescender = Descender
    	font.info.openTypeHheaAscender = WinAscend
    	font.info.openTypeHheaDescender = -abs(WinDescend)
    	font.info.openTypeHheaLineGap = 0
    	font.info.openTypeOS2TypoLineGap = abs(Gap)
    
    print
    print "In all open fonts:"
    print "The maximun Y value is: "+ str(max(max_Y_values))
    print "The minimum Y value is: "+ str(min(min_Y_values))
    print "TypoLineGap is: " + str(Gap) 
  • Re: Changes to Reactions

    I think there are many more attitudes that deserve 'vote down' beside of being 'off topic'. I am thinking of, i.g. misogynistic, racist or aggressive rhetoric. I am not in favor of renaming 'vote down'.