Class: CTioga2::Graphics::Styles::FullLatexFont
- Inherits:
-
BasicStyle
- Object
- BasicStyle
- CTioga2::Graphics::Styles::FullLatexFont
- 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
-
#set_global_font(t) ⇒ Object
Set global font information based on this style.
Methods inherited from BasicStyle
alias_for, aliases, attr_accessor, attribute_type, attribute_types, attributes, convert_string_hash, defined_aliases, deprecated_attribute, from_hash, inherited, #instance_variable_defined?, normalize_hash, normalize_in, normalize_out, options_hash, #set_from_hash, sub_style, sub_styles, #to_hash, typed_attribute, #update_from_other, #use_defaults_from
Instance Method Details
#set_global_font(t) ⇒ Object
Set global font information based on this style
This only works from within a figure !
372 373 374 375 376 377 378 379 380 381 382 383 |
# File 'lib/ctioga2/graphics/styles/texts.rb', line 372 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 |