Sie sind nicht angemeldet.

1

Freitag, 5. November 2010, 07:32

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

Mittwoch, 10. November 2010, 15:44

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

Montag, 22. November 2010, 05:13

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

Mittwoch, 24. November 2010, 16:03

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

Ähnliche Themen