How to use a TTF font into a Panotour Pro project  

Share your tips and tricks here or get help with any Panotour 2.0+ problem!
No bug reports (of any kind) in this forum!
User avatar
Annis
Kolor Team
 
Posts: 6062
Likes: 801 posts
Liked in: 444 posts
Joined: Mon Aug 12, 2013 12:47 pm
Location: France
Info

Re: How to use a TTF font into a Panotour Pro project

by Annis » Mon Apr 24, 2017 4:38 pm

You can change your project, you already are editing it.

You are however changing files written by Panotour, so any new build means rewriting that code.

no avatar
spieler
New member
 
Posts: 3
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 24, 2017 12:48 pm
Info

Re: How to use a TTF font into a Panotour Pro project

by spieler » Mon Apr 24, 2017 4:45 pm

Yes, Annis. I understand that!

A solution must be before the built and not after that. So i'm working with an html-template with inline-CSS.

User avatar
bobjones
Member
 
Posts: 154
Likes: 8 posts
Liked in: 8 posts
Joined: Tue Jun 03, 2014 3:37 am
Info

Re: How to use a TTF font into a Panotour Pro project

by bobjones » Wed May 03, 2017 8:58 am

I'm going to add a simplified answer here... I'm only using html5 from now on anyway.

Client wanted me to use Agenda as the default font.

1.) Added this code in the head of my main html file

<style>
@font-face {
font-family: 'Agenda';
src: url('Agenda.ttf');
}
</style>

2.) Added this font file to the root of my tour directory (where the html file is): Agenda.ttf (renamed from Agenda-medium.ttf)

3.) Made sure the name of the font is correct in the yourtour_core.xml file

<layer name="panotourTooltipDefaultText"
keep="true"
enabled="false"
capture="false"
url="%FIRSTXML%/graphics/textfield.swf"
align="center"
roundedge="5"
background="true"
backgroundcolor="0xffffff"
backgroundalpha="1"
border="false"
css="color:#000000;font-family:Agenda;font-size:16px;text-align:left;"
height="20"
autoheight="true"
autowidth="auto"
edge="bottom"
selectable="false"
zorder="0"
padding="2"
xoffset="0"
yoffset="0"
visible="false"
html=""
/>

Works for me.

User avatar
Annis
Kolor Team
 
Posts: 6062
Likes: 801 posts
Liked in: 444 posts
Joined: Mon Aug 12, 2013 12:47 pm
Location: France
Info

Re: How to use a TTF font into a Panotour Pro project

by Annis » Wed May 03, 2017 9:30 am

Yes it's very simple, but the notes and text in red make it look very complicated.
I'm currently working on a tutorial page so that it's easier to understand.

Also, in your post you are only modifying the default tooltips. You also need to edit the other xml files if you have any other plugins with text that you want using the other font.

User avatar
Annis
Kolor Team
 
Posts: 6062
Likes: 801 posts
Liked in: 444 posts
Joined: Mon Aug 12, 2013 12:47 pm
Location: France
Info

Re: How to use a TTF font into a Panotour Pro project

by Annis » Thu May 04, 2017 10:25 am

I've removed the Sticky status of this topic and locked it as my tutorial page is complete, and can be found here: http://www.kolor.com/wiki-en/action/vie ... rtual_tour

It is fairly straightforward, but if you have any questions, please create a new topic.

Previous

Who is online

Users browsing this forum: No registered users and 1 guest

cron