You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, October 8th 2009, 8:35pm

Possible to ZOOM text?

I am using textfield as a hotspot and would like it to zoom. Is this possible?
zoom="true" does not seem to work....

Thanks in advance!

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

2

Saturday, October 10th 2009, 11:12pm

Hi narad13,

Quoted

zoom="true" does not seem to work....
I have tried this and, as you say, it does not seem to work...
Perhaps you can try using distorted hotspot... I have made some tries and the zoom works but, at least for me, it is difficult to place correctly the text in the place you want...
Here an example:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<krpano version="1.0.7">

	<!-- use the editor for moving,rotating,scaling hotspots -->
	<plugin name="editor"  url="../../plugins/editor.swf"  />
	<plugin name="options" url="../../plugins/options.swf" />

	<view fisheyefovlink="1.5" />
	
	<preview type="grid(cube,32,32,256,0x000000,0x778899,0x000000);" details="8" />

	<data name="buttontext">
		<p align="center">
			<font face="arial" size="+4">
				<b><i>HTML TEXT FOR TEXTFIELD</i></b>
			</font>
		</p>
	</data>
	
	<hotspot name="button" url="%SWFPATH%/plugins/textfield.swf" 
			zoom="" ath="0" atv="0" distorted="true"
			handcursor="false" capture="false"
	    	width="450" height="450"
			edge="top" ox="0" oy="0"
	    	html="data:buttontext"
	    	background="false"
	    	textglow="4"
	    	textglowcolor="0xFFFFFF"
	    	textshadow="3"
	    	autosize="none"
	    	onclick=""
	    	/>
	
</krpano>

note: the width="x" height="y" must be square.... if not, the text inside the textfield loses his aspect ratio...
I think it would be better, to make your hotspots text, the use png pictures or swf files instead of using the textfield plugin... Perhaps I am wrong...

Salut.

3

Monday, October 12th 2009, 3:38am

Michel,

Thanks very much for your suggestions. I may try this out when I get back to the office.

You might be right that a .PNG or .SWF might be better. This is what I am doing right now, and it works, but it tends to look a bit fuzzy when you get in close to it due to the compression. I was thinking that if I could get text to scale properly it would retain it's sharpness at all zoom levels.

But maybe it wasn't' meant to be...

Thanks!

Similar threads