On Wed, Apr 17, 2024 at 07:08:29PM +0800, Qian Yun wrote:
> This "title" thing is more complex than I thought.
> 
> For  vp:=draw(x,x=0..1); write(vp,"pic", FORMAT)
> 
> When FORMAT is:
> 
> "pixmap" or "bitmap":
> generates 400x400 image, title is the same as screen output
> 
> "image":
> generates 300x324 image, title is 24 pixel higher than screen output
> 
> "postscript":
> generates 400x376 image currently, no title.
> I can modify it to generate 400x400 image with title the same
> as screen output.
> 
> 
> The "image" format is currently used by hypertex to generate
> *.VIEW and convert to images used in book.

Ideally "image" ('.xpm') would be just option for users who want legacy
format.  AFAIUI your work make '.xpm' unnecessary for book.  And
ideally it would be not used by HyperDoc.  Currently graphics
itself uses '.data' file.  '.xpm' is used by 'viewAlone'.

> I will change "postscript" to generate 400x400 image with title.
> 
> However, shall we change the "image" format?  I mean what's the
> point of generating a smaller image and taller title?  Is that
> required by hyperdoc somehow?

I do not think so.

> My guess is that making the image smaller can make the title
> font relatively larger.
> I think 300x324 is a mistake, it calculated titleHeight twice.

Possibly.

-- 
                              Waldek Hebisch

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to fricas-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/Zh_E75qBU0oy_oo_%40fricas.org.

Reply via email to