Method: Writexlsx::Package::Styles#write_font_base

Defined in:
lib/write_xlsx/package/styles.rb

#write_font_baseObject



168
169
170
171
172
173
174
175
176
177
# File 'lib/write_xlsx/package/styles.rb', line 168

def write_font_base
  @xf_formats.each do |format|
    next unless format.has_font?

    format.write_font(@writer, self)
    @has_hyperlink     = 1 if ptrue?(format.hyperlink)
    @hyperlink_font_id = format.font_index unless ptrue?(@hyperlink_font_id)
  end
  write_comment_font if @has_comments
end