I would like a way to create an image of text that is a specific height in pixels. In the following code, the text is sized to fit in the specified raster. Since there are five letters, we expect each letter, with padding, to consume about 1/5 the raster width. When cropped, the height is a bit larger than that, but that makes sense because letter height will generally be greater than letter width. The problem with this approach is that letter height depends in a complicated way on the widths of the letters used. Is there a simple way to ensure that text is rendered at a specific height (e.g. for the letter "x") in pixels?
rastersize = 256;
tmp0 = Rasterize["jello", RasterSize -> rastersize {1, 1}]
tmp1 = ImageCrop[tmp0]
ImageDimensions /@ {tmp0, tmp1}
rastersize /5.