Quote:
Originally Posted by odedta
Code:
<text x="900" y="1550" style="font-size:2em">The U.S. Capitol (1840)</text>
|
Interesting... I tried that, and the text actually got smaller than it was before! I would have thought that it would get bigger, like, pretty much twice the size (give or take, if not exactly, i.e. 2em) what the basefont size is for my text throughout the rest of my book (which is set at 100%).
What an "em" is is relative to whatever one's font size is to begin with, of course -- what exactly is this basing what "2em" (or whatever) is relative to?
In any case, thanks, Oded! That's getting me a little closer -- even if I'm still a bit confused.
And to Dale...
Quote:
Originally Posted by DaleDe
The x,y coordinates in the text line determine where it starts. The font-size by default is in pixels. You should also be able to use em I believe. If you look at the viewBox="0 0 2048 1600" you may notice that the width is the same as your images and the height is a bit more. I think yours were 1536. This leaves quite a few pixels for the text. You can increase the 1600 number if you wish to make more room.
|
Ah, okay, I think I'm finally starting to understand what all those numbers represent.
Quote:
SVG has its own entry for fonts as well if you want a certain one.
|
It would appear that it's just using the font I specified in my style sheet -- although it's
not using the font
size that I specified.
Quote:
x is increase left to right while y increases downward when specifying where the text should start. When you use different size readers the numbers will scale accordingly.
|
Well, that's odd. So the only way to center the text is to basically "eyeball" it, and do up each and every caption individually (since they're all a different length, of course)? You can't just tell it to "center"? That's a bit of a pain -- not only to have to play with each and every caption individually, but also if the person is using a reader that can't used embedded fonts, or if they choose to go with a different font, or for whatever other reason that a different font ends up being used, then that can also affect line length, too, of course. And then things won't necessarily be centered anymore.
There's no way to just tell the text to be centered, no matter how long the line is (depending on the caption)?