Class: CTioga2::Graphics::Styles::FullLatexFont

Inherits:
BasicStyle
  • Object
show all
Defined in:
lib/ctioga2/graphics/styles/texts.rb

Overview

TODO:

There is a whole bunch of work to be done on the Tioga

Full font information

side to make sure that things work.

Constant Summary

Constants inherited from BasicStyle

BasicStyle::AllStyles, BasicStyle::OldAttrAccessor

Instance Method Summary collapse

Methods inherited from BasicStyle

alias_for, attr_accessor, attribute_type, attribute_types, attributes, deprecated_attribute, from_hash, inherited, #instance_variable_defined?, options_hash, #set_from_hash, sub_style, sub_styles, #to_hash, typed_attribute, #update_from_other

Instance Method Details

#set_global_font(t) ⇒ Object

Set global font information based on this style

This only works from within a figure !



367
368
369
370
371
372
373
374
375
376
377
378
# File 'lib/ctioga2/graphics/styles/texts.rb', line 367

def set_global_font(t)
  # for a in %w(family series shape)
  #   v = self.send(a)
  #   t.send("tex_font#{a}=", v) if v
  # end


  if @size
    fact = @size/t.default_font_size
    t.rescale_text(fact)
  end
end