gfngfn / SATySFi

A statically-typed, functional typesetting system
GNU Lesser General Public License v3.0
1.17k stars 83 forks source link

Getting natural length of pictures #296

Open yasuo-ozu opened 2 years ago

yasuo-ozu commented 2 years ago

In SATySFi, the only way to draw pictures is

load-image : string -> image
use-image-by-width : image -> length -> inline-cmd

Is there any way to draw pictures with natural length? My suggestion is deprecating use-image-by-width and add use-image as

use-image : image -> inline-cmd

Then, use-image-by-width will be defined with linear-transform-graphics and use-image.

yasuo-ozu commented 2 years ago

related:

https://twitter.com/yasuo_ozu/status/1439587987650580480