In this section:
%gf (Font Handle) takes one INTEGER(7) variable that receives the current font handle. This handle can then be used in any Windows API function that requires a font handle.
For example:
INTEGER(7) h_font
i=winio@('%ts%gf',2.0D0,h_font)