The difference is j601 is EMF and j504 is WMF.
To see what's going on inside the Metafiles,
use EnhMeta.exe (or ENMETA.EXE) from Microsoft
http://support.microsoft.com/kb/q145999/
The problem is that it's really not clear how
these commands should work together in j504.
glmap
glplaymap
glplayxywh
glplayext
glplay
Not clear how extent is determined at file creation.
When you look at fontscale.wmf in EnhMEta.exe the
image is a tiny square on a large canvas.
So the result is worse than direct drawing.
It might as well be an artifact of WMF as opposed to EMF.
I recommend against j504, plus is doesn't support Unicode.
Note how correct font size is treated in j504:
negative pixel size (1 pixel = 4%3 point). So if you
really want Courier New 9pt, you say glfont ... _12.
NB. =========================================================
NB. fontmeta for j504
require 'gl2'
coinsert 'jgl2'
F=: 0 : 0
pc f;pn "Font Metafile";
xywh 6 6 117 50;cc fn combolist rightmove;
xywh 129 7 36 10;cc cq checkbox leftmove rightmove;cn "Quality";
xywh 6 20 200 200;cc g isigraph rightmove bottommove;
pas 6 6;pcenter;
rem form end;
)
f_run=: 3 : 0
wd F
wd 'set fn *',FONTS
wd 'setselect fn 0'
wd 'setfocus fn'
cq=: '0'
fn=: 'Arial'
f_g_paint ''
wd 'pshow;'
)
f_g_paint=: 3 : 0
S=. 1 + 0 ".cq
wh=. S*glqwh''
glclear ''
glmap MM_RAW
glbkmode 1
glfile jpath'~temp/fontscale.wmf'
glplaymap MM_RAW
glbrush glrgb 3#220
glpen 1 0 [ glrgb 3#200
for_i. 2+i.18 do.
p=. S*10,i*i
glrect p, S*380, i*4%3
glfont '"',fn,'" ',": -S*i*4%3
gltextxy p
gltext (10#'x'),' ','"',fn,'" ',":i
end.
glsave 0,wh
glclear ''
glmap MM_RAW
NB. glplaymap MM_RAW
glplayxywh 0 0,wh%1+3*S-1
glplayext wh
glplay jpath'~temp/fontscale.wmf'
glshowx''
glpaintx''
)
f_fn_select=: f_cq_button=: f_g_paint
f_close=: 3 : 0
wd'pclose'
)
FONTS=: 0 : 0
Arial
Courier New
Times New Roman
)
f_run ''
--- bill lam <[EMAIL PROTECTED]> wrote:
> Oleg Kobchenko wrote:
> > Looking on how Wordpad does Preview, I got another idea
> > that may improve glyph positioning.
> >
> > If you zoom or scale the window of Wordpad Preview, you
> > notice that the ratio of glyphs does not change as opposed
> > to what we saw with changing the point size. This means that they
> > are not redrawing the picture at scale, but rather
> > have the same vector image, which is drawn at different
> > sizes. So they use the Metafile, which is available in
> > J for Windows: glfile, glemfopen, glemfclose, glemfplay.
> >
> > So you could populate the Metafile with larger font sizes,
> > which do not have the artifacts and then play it at reduced
> > sizes for zooming, etc.
> >
>
> I tested fontmeta.ijs, it's much faster than scalex2 method but the text does
> not look so nice.
>
> when I try to use J504 metafile cmd, glplayext and glplayxywh are very
> difficult
> to use, Could you also provide a fontmeta.ijs in J504?
>
> Also I notice file size of the temp metafile is much bigger in J601, eg.
> J504 12kb
> J601 100kb
>
> Is this expected?
>
> --
> regards,
> bill
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm