[Plugin] tag text

Post your completed addons to share with the community

Post » Sat Jul 09, 2016 3:11 pm

@RBuster

Is "Univers Pro" a web font?
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Sat Jul 09, 2016 3:29 pm

Yes. Did you see the link that I have shared?

Here is the font's names:

font-family: 'Univers Pro 75 Black'
font-family: 'Univers Pro 45 Light'
font-family: 'Univers Pro 55 Roman'

Here is the code that I need to use in my index:

Code: Select all
<script type="text/javascript">
    (function() {
        var path = '//easy.myfonts.net/v2/js?sid=211228(font-family=Univers+Pro+75+Black)&sid=218105(font-family=Univers+Pro+45+Light)&sid=218106(font-family=Univers+Pro+55+Roman)&key=6fqnzbOmk9',
            protocol = ('https:' == document.location.protocol ? 'https:' : 'http:'),
            trial = document.createElement('script');
        trial.type = 'text/javascript';
        trial.async = true;
        trial.src = protocol + path;
        var head = document.getElementsByTagName("head")[0];
        head.appendChild(trial);
    })();
</script>
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041

Post » Sun Jul 10, 2016 2:25 am

@RBuster

Current tagtext plugin does not support web-font well.
I will try to add something to load this web-font first, especial the web-font you provided.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Sun Jul 10, 2016 12:51 pm

Thanks @rexrainbow

I'm having some difficulty to implement subscript numbers/letters. I'm getting always the superscript style instead subscript. If I use vertical-alignment action to bottom, the entire text goes to down, even the text that uses other tag.

I have tried to include by CSS tag:

- vertical-align: sub/baseline/bottom with position: relative or not.

Do you know if I can use subscript style with tag text ?
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041

Post » Mon Jul 11, 2016 4:50 pm

@rexrainbow

I would like to understand why the character goes up when I decrease its size. I don't need a real subscript style, I just want a smaller character that keeps in the baseline. Could you help me with this issue? Thanks in advance.
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041

Post » Tue Jul 12, 2016 1:15 am

@RBuster

If user want to show characters with multiple size, user should set "Baseline" to "Alphabetic", and set "Shift down" to assign a y-offset manually.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Tue Jul 12, 2016 10:32 am

Hi

I have used the "baseline" value to "vertical-align in the "tags by CSS" but I don't know how to set "shift down". Could you give me a simple example of hw to set it?
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041

Post » Tue Jul 12, 2016 12:20 pm

@RBuster

You could find them in properties table of this tagText object. (The table to set initial text content, and color ... etc )
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Tue Jul 12, 2016 12:46 pm

Thank you!
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041

Post » Tue Jul 12, 2016 4:42 pm

@rexrainbow

A few posts ago I have commented about the delay when the layout starts. Before showing the right font, the tag text object shows Times New Roman and I didn't figured out how to fix it until now. Do you have any suggestion about it? I'm filling the tag text with the text in the event "on start layout" but 1.0 second after that I defined the tags. Thanks in advance.

Edited: One more question: Can I use tag text to stretch a font?
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 0 guests