Usage
tk2font.get(font, what = c("family", "size", "bold", "italic"))
tk2font.set(font, settings)
tk2font.setstyle(text = TRUE, system = FALSE, default.styles = FALSE)
Arguments
font
the name of one or several cached Tk font.
what
a list of font characteristics to get: 'family', 'size', 'bold',
'italic', 'underline' and/or 'overstrike'. By default, everything except
'underline' and 'overstrike'.
settings
settings of fonts. There are two forms possibles: (1) a vector
of character strings of same length as font with Tk fonts description like
'-family Times -size 12 -weight bold', for instance, or (2) a list of
font characteristics (list with components 'family', 'size', 'bold', 'italic',
'underline' and 'overstrike').
text
do we synchronise text Tk fonts (text, titles, and fixed-font text)
with current settings, as in .Fonts
in SciViews:TempEnv
?
system
do we synchronise system Tk fonts (widgets, window caption,
menus, tooltips, ...) with current system configuration? This is highly
platform dependent. Currently, system settings are gathered only under Windows,
thanks to the winSystemFonts() function.
default.styles
do we add .fontsStyleXXX
in
SciViews:TempEnv
, where XXX is one of the four default styles:
'Classic', 'Alternate', 'Presentation' or 'Fancy'.