|
Post by chairman on Sept 11, 2019 17:07:06 GMT
In the TCG I'm templating, keywords use a different font from regular effect text. I've been hacking it so far using symbol fonts to replace keywords with an image file, but this doesn't line-wrap correctly.
For example, assume "Protection from trolls" is a keyword.
The above is the ideal situation, where the keyword correctly wraps to the next line. By using the image hack, I force the end user to do the following:
Which is to manually insert line breaks.
Other downsides of the image-hack implementation is the inability to type out keywords, and I end up having to make new images and symbol-font replacements for new keywords or even custom keywords that users want.
Is there anything that I can do? I greatly appreciate any and all help. Thanks!
|
|
kolya
1/1 Squirrel
Posts: 64
Formerly Known As: fedosu
Color Alignment: Blue, Red, Green
|
Post by kolya on Sept 12, 2019 3:24:00 GMT
Does the templating use italics? If not, in the styling field for your text box you can list a parameter for "font:" and one for "italic font:" and then you just italicize your keywords and they'll flip to the other font. That is, again, assuming you don't have reminder text or anything else in italics.
text: left: 24 top: 498 width: 40 height: 10 z index: 2 font: name: MPlantin italic name: Times New Roman size: 12 color: Black
The regular magic templates do this, but the italic font is just the italic version of the regular font, but there's no reason it needs to be.
|
|
|
Post by chairman on Sept 12, 2019 6:20:52 GMT
The font uses italics for Reminder Text. I considered the idea.
|
|
|
Post by chairman on Oct 3, 2019 5:42:46 GMT
Bumping this thread since I still don't have a solution. Is there anything I can do with styling fields or something scriptable?
|
|