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

Friday, November 5th 2010, 7:32am

Custom css fonts

Hello,

How do i make use of the custom css fonts on the krpano tour? Say, for showing text on hotspots on-hover or for any other purpose. Custom css fonts, in the sense of css fonts provided by google, http://code.google.com/webfonts/family?f…bset=latin#code .

I have included the code for the custom font in the html page that contains the tour. I am able to use the custom font on the elements of the html page. When i try to use the same font-family for some css attribute (for a textfield) in the tour, krpano is using the default font.

So, any pointers on how do i go about using custom css fonts in krpano?

Thank you.

2

Wednesday, November 10th 2010, 3:44pm

Hi,

the CSS from the outside HTML has no effect inside the Flashplayer,
the Flashplayer is using its own small HTML/CSS parser and rendering engine,
and there is only a very small subset of CSS supported,

please have a look at the HTML and CSS links on the page here to see what
is possible and what not with the HTML/CSS in a textfield:

http://krpano.com/plugins/textfield/

best regards,
Klaus

3

Monday, November 22nd 2010, 5:13am

Hello,

Can we embed a font into a plugin and use that font with the styles or do i have to with the custom textfield plugin as mentioned here, http://www.krpano.com/forum/wbb/index.ph…=fonts#post6142 ?

Thank you.

4

Wednesday, November 24th 2010, 4:03pm

Hi,

regarding to the Flashplayer documentation here:
http://help.adobe.com/en_US/FlashPlatfor…html#embedFonts

the embedFonts attribute of the TextField object must be set to true to be able to use embedded fonts,
but then I think in this case only embedded fonts can be used,

best regards,
Klaus

Similar threads