Data AcQuisition And Real-Time AnalysisScope - Spectrum - Spectrogram - Signal Generator
Software for Windows
Science with your Sound Card!
Contact us about
Custom Macro Message Fonts
Macros: MsgFont, MsgWeight, MsgItalic, MsgFamily
There are four descriptively-named commands to control the font of a custom macro message, plus four alternative versions that are extensions of the Msg macro itself. Two additional commands, only available using the alternative format, control message white space. The alternative format allows macro expressions as parameters, and is also compatible with the Output Display commands in MIDI Changes scripts.
MsgFont=100 or Msg="<F(100)" sets the font size to 100 pixels. You can set values from 0 to 1000. Setting 0 will revert to the default font, which is similar to that found in standard message boxes (with buttons).
Note that the following weight, italic, and family settings will be ignored until you explicitly set a non-zero font size. The default equivalent font size is 16.
MsgWeight=600 or Msg="<W(600)" sets the font weight to Semibold (default). You can set values from 0 to 1000:
100 = Thin 200 = Extralight 300 = Light 400 = Normal 500 = Medium 600 = Semibold 700 = Bold 800 = Extrabold 900 = Heavy
MsgItalic=1 or Msg="<i(1)" specifies an italic font. MsgItalic=0 or Msg="<i(0)" sets a normal font, and MsgItalic=x toggles the current font between them. (There is no toggle equivalent in the Msg-based format.)
MsgFamily=2 or Msg="<f(2)" sets the font family to Arial (default). You can set values from 0 to 3:
0 = Don't Care (default Arial) 1 = Times New Roman (proportional, with serifs) 2 = Arial (proportional, no serifs) 3 = Lucida Console (monospace, no serifs)
Msg="<v(n)" sets the vertical white space above and below the text to n pixels, which may range from 0 to 100 with a default of 40.
Msg="<h(n)" sets the horizontal white space at the left and right ends of the text to n pixels, where n may range from 0 to 100, defaulting to 25.
In both of the above commands, the n value is only an approximate number of pixels; the screen result is also affected by the chosen font parameters.
Questions? Comments? Contact us!We respond to ALL inquiries, typically within 24 hrs.
Over 30 Years of Innovative Instrumentation
© Copyright 2007 - 2020 by Interstellar Research
All rights reserved