Lines Matching refs:font
138 font = None
146 if name_id <= last_name_id and font is not None:
147 fonts.append(font)
148 font = None
150 if font is None:
151 font = FontInfo()
153 font.family = namerecord.text.strip()
155 font.style = namerecord.text.strip()
157 font.ends_in_regular = ends_in_regular(namerecord.text)
158 font.fullname = namerecord.text.strip()
160 font.version = get_version(namerecord.text)
161 if font is not None:
162 fonts.append(font)
169 font = None
174 font = fonts_iterator.next()
175 font = update_font_name(font)
178 namerecord.text = font.family
180 namerecord.text = font.fullname
183 def update_font_name(font): argument
189 if font.family is None or font.style is None:
191 if font.version is not None:
192 new_family = font.family + font.version
194 new_family = font.family
195 if font.style is 'Regular' and not font.ends_in_regular:
196 font.fullname = new_family
198 font.fullname = new_family + ' ' + font.style
199 font.family = new_family
200 return font