def to_glyphs_blue_values(self, ufo, master):
zones = []<EOL>blue_values = _pairs(ufo.info.postscriptBlueValues)<EOL>other_blues = _pairs(ufo.info.postscriptOtherBlues)<EOL>for y1, y2 in blue_values:<EOL><INDENT>size = y2 - y1<EOL>if y2 == <NUM_LIT:0>:<EOL><INDENT>pos = <NUM_LIT:0><EOL>size = -size<EOL><DEDENT>else:<EOL><INDENT>pos = y1<EOL><DEDENT>zones.append(self.glyphs_module.GSAlignmentZone(pos, size))<EOL><DEDENT>for y1, y2 in other_blues:<EOL><INDENT>size = y1 - y2<EOL>pos = y2<EOL>zones.append(self.glyphs_module.GSAlignmentZone(pos, size))<EOL><DEDENT>master.alignmentZones = sorted(zones, key=lambda zone: -zone.position)<EOL>
Sets the GSFontMaster alignmentZones from the postscript blue values.