% -*- latex -*-
\documentclass[a4paper] {article}

\usepackage{graphics}  % for scalebox
\usepackage{t1enc}     % for 8bit chars

\begin{document}

\setlength{\unitlength}{3947sp}%

\begingroup\makeatletter\ifx\SetFigFont\undefined
% extract first six characters in \fmtname
\def\x#1#2#3#4#5#6#7\relax{\def\x{#1#2#3#4#5#6}}%
\expandafter\x\fmtname xxxxxx\relax \def\y{splain}%
\ifx\x\y   % LaTeX or SliTeX?
\gdef\SetFigFont#1#2#3{%
  \ifnum #1<17\tiny\else \ifnum #1<20\small\else
  \ifnum #1<24\normalsize\else \ifnum #1<29\large\else
  \ifnum #1<34\Large\else \ifnum #1<41\LARGE\else
     \huge\fi\fi\fi\fi\fi\fi
  \csname #3\endcsname}%
\else
\gdef\SetFigFont#1#2#3{\begingroup
  \count@#1\relax \ifnum 25<\count@\count@25\fi
  \def\x{\endgroup\@setsize\SetFigFont{#2pt}}%
  \expandafter\x
    \csname \romannumeral\the\count@ pt\expandafter\endcsname
    \csname @\romannumeral\the\count@ pt\endcsname
  \csname #3\endcsname}%
\fi
\fi\endgroup

% One cm  <-> 471.66 units
% 12 cm   <-> 5660
% 12.2 cm <-> 5750

\begin{picture}(0,5424)(1400,-5023)
\thinlines
\put(451,-5011){\framebox(5750,5660){}}
\put(6201,-5011){\framebox(5750,5660){}}
