I want to create a long, skinny Image
containing only text.
This makes a square image of the default size.
Image@Graphics[
{
FontSize->20,
Text["now is the time for all good men to come to the aid of their country"]
}
]
So I prescribe the dimensions I want:
Image@Graphics[
{
FontSize->20,
Text["now is the time for all good men to come to the aid of their country"]
},
ImageSize->{1000,30}
]
and the result is cropped well inside the ImageSize
so some of the text is missing. But the Graphics
alone is appearing correctly.
Graphics[
{
FontSize->20,
Text["now is the time for all good men to come to the aid of their country"]
},
ImageSize->{1000,30}
]
Why does Image
mysteriously crop the input?
Style[Text[ "now is the time for all good men to come to the aid of their country"], FontSize -> 20]//Rasterize
? $\endgroup$Graphics
primitives in practice. $\endgroup$ImageSize
toImage
, notGraphics
. TryImage[Graphics[Text[Style["now is the time for all good men to come to the aid of their country", 20]]], ImageSize -> {600, 30}]
$\endgroup$