Sie sind nicht angemeldet.

1

Dienstag, 24. Juni 2014, 11:26

Bug in Textfield 1.17.4

Hi Klaus,

I use the example on this link:
http://www.krpano.com/forum/wbb/index.ph…50929#post50929
I'm trying to add the rotate of the text.

Zitat

<style name="skin_hotspotstyle" url="vtourskin_hotspot.png" scale="0.5" edge="top" oy="0" distorted="false"
tooltip=""

onclick="if(linkedscene, skin_hidetooltips();
tween(scale,0.25,0.5); tween(oy,-20,0.5); tween(alpha,0,0.5);
looktohotspot(); loadscene(get(linkedscene),null,MERGE,BLEND(1));
skin_updatescroll(); );"
onloaded="add_all_the_time_tooltip();"
/>

<action name="add_all_the_time_tooltip">
txtadd(tooltipname, 'tooltip_', get(name));
addplugin(get(tooltipname));
txtadd(plugin[get(tooltipname)].parent, 'hotspot[', get(name), ']');
set(plugin[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');
set(plugin[get(tooltipname)].align,top);
set(plugin[get(tooltipname)].edge,bottom);
set(plugin[get(tooltipname)].x,0);
set(plugin[get(tooltipname)].y,0);
set(plugin[get(tooltipname)].width,200);
set(plugin[get(tooltipname)].autoheight,true);
set(plugin[get(tooltipname)].background,false);
set(plugin[get(tooltipname)].border,false);
set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:16px;');
set(plugin[get(tooltipname)].textshadow,1);
set(plugin[get(tooltipname)].textshadowrange,6.0);
set(plugin[get(tooltipname)].textshadowangle,90);
copy(plugin[get(tooltipname)].html,scene[get(linkedscene)].title);
set(plugin[get(tooltipname)].enabled,false);
set(plugin[get(tooltipname)].rotate,270);
</action>
But the code does not work. Without rotate the code works, with rotate - does not work. Why?
My the shorter code doesn't work too.

Zitat

<hotspot name="test"
ath="0" atv="0"
align="lefttop" edge="lefttop"
url="%FIRSTXML%/textfield.swf"
html="mymessage"
rotate="270"
/>
Have any ideas how to rotate a text?
PS.When html5:"only" this code is work, but when html5:"auto" - do not work. Why?

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »niki555« (24. Juni 2014, 11:43)


2

Dienstag, 24. Juni 2014, 11:45

Hi,

that's a Flashplayer limitation - the Flashplayer can't render rotated texts...

Rotated text would only work in the Flashplayer when using embedded fonts - in this case the Flashplayer will render the text with it's internal vector-renderer and here it can apply any transforms.

Best regards,
Klaus

3

Dienstag, 24. Juni 2014, 12:38

can I dynamically set the rotate of the text using embedded fonts?

5

Dienstag, 24. Juni 2014, 13:56

Dankeschön

6

Dienstag, 24. Juni 2014, 20:09

1) Where can I download embeddedfonts.swf for krpano 1.16?
2) I have the problem of displaying a foreign text. If the text is not written in English - it is not displayed.

Quellcode

1
2
3
css="font-family:myFont; font-size:16px;"
html="привет"
embeddedfonts="true"

How to solve the problem?

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »niki555« (24. Juni 2014, 21:03)


7

Donnerstag, 26. Juni 2014, 08:06

Hi,

there is no 'embeddedfonts.swf' for 1.16, this was introduced in version 1.17.

Regarding 'foreign texts' - in the embeddedfonts.as there is this setting on each font:

Quellcode

1
unicodeRange="U+0020-U+00FF"
this defines which font characters will be embedded.

The range from 0x20 to 0xFF includes only the most basic characters. This was done by default to keep the resulting file size smaller - a font with all characters can become very big (several MB) and then also the download can take a long time.

Try increasing that range, maybe up to 'U+FFFF' to include all available characters.

Best regards,
Klaus

8

Donnerstag, 26. Juni 2014, 11:18

the problem is solved, the topic can be closed.
PS i have some problem with compile embeddedfonts.swf. At the forum many had the same problems. The problem was that on PC not have Java installed.

Ähnliche Themen