Page 1 of 1

New HMG COMMAND: GET FONT TO

Posted: Thu Mar 09, 2017 11:02 pm
by Pablo César
Hi HMG Development Team and others colleagues,

I found SET FONT TO very useful command to standardize FONT name and size in all controls that taking default one.

And when we change this default FONT, I would like to have it:

#xcommand GET FONT TO <aFont> ;
      => ;
      <aFont> := \{ _HMG_SYSDATA \[ 342 \] , _HMG_SYSDATA \[ 343 \] \}


This command would it be useful to return the previous FONT configuration, as follows:

Code: Select all

GET FONT TO aFont
SET FONT TO 'Courier', 10

... (returning after displaying then FONT coming back with the previous configuration)

SET FONT TO aFont[1], aFont[2]
Is it feasible to have it at HMG? Would it be of common interest to all ?

Re: New HMG COMMAND: GET FONT TO

Posted: Fri Mar 10, 2017 3:20 am
by Rathinagiri
Sure. Nice suggestion Pablo. IMHO, even for the default font, the default fontname and size shall be returned.

Re: New HMG COMMAND: GET FONT TO

Posted: Fri Mar 10, 2017 4:09 am
by bpd2000
Rathinagiri wrote: Fri Mar 10, 2017 3:20 am Sure. Nice suggestion Pablo. IMHO, even for the default font, the default fontname and size shall be returned.
+1

New HMG COMMAND: GET FONT TO

Posted: Fri Mar 10, 2017 9:49 am
by Pablo César
Thank you guys for your interest. :D