Author Topic: Change Font  (Read 1435 times)

webster

  • Newbie
  • *
  • Posts: 1
Change Font
« on: March 16, 2009, 10:16:34 am »
Hi, i don't know if i'm just being blind or stupid or what, but how do you change the font that txt elements use?

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1989
  • MegaZine3 Developer
    • MegaZine3
Re: Change Font
« Reply #1 on: March 16, 2009, 05:23:54 pm »
You'll have to use <font face="xxx">. Note that it might be a better idea to use images (containing the text) instead of the txt element when using custom fonts, as the font won't be embedded into the swf, and therefore will only be available on machines where the font is installed.
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

Emmalaura

  • Newbie
  • *
  • Posts: 9
Re: Change Font
« Reply #2 on: June 19, 2009, 10:33:28 am »

I agree that using an 'image as text' would be preferrable to using live text as you'll have more control over how it is viewed at the other end. However, Please could someone help me by telling me how to make the link an image? I've gotten links working using live text but am not sure how to link via images?

Thanks

maxie

  • Jr. Member
  • **
  • Posts: 43
Internal links to pages of the book (was Re: Change Font)
« Reply #3 on: June 20, 2009, 12:45:03 pm »
Hello Emmalaura,

For a link inside your image define the  <area> of your image where the link shall be working.

For instance, the text here is an image, with 3 internal links on it: http://maxie-online.de/#/2
You see there are 3 links to page 5, 17, and 29.
So what did I do:

1. I made the pages 5, 17 and 29 "anchor pages" by adding an anchor to the page tag in the megazine.xml:
    Like here on page 5:
    <page anchor="bilderalbum" >
    <img src="elements/seite5.jpg" />
    </page>

2. I have defined the areas on the picture, in which the text links are located, and then added the links ("url=") plus hover colour.
   This is how my page2 looks inside the megazine.xml ("..." = snipped to make the line short here for you):
   
    <page>
       <img src="elements/cover_innen.jpg" />
      <area height="25" width="390" top="120" left="50" overlay="0xBF339966"  url="anchor:bilderalbum" title="Beispiele ... ">
      </area>
      <area height="50" width="390" top="170" left="50" overlay="0xBF663366" url="anchor:codebeispiele" title="Code-Beispiele ...">
      </area>
      <area height="25" width="390" top="250" left="47" overlay="0xBFDDFF33" url="anchor:verlinken" title="Wie Sie externe ...">
      </area>
    </page>

Hope this was helpful for you. You would have to do the same if you would want to link parts of an image (imagemap with hotspots) to other pages.

Hope this helps you.
Regards,
Maxie

PS: The book is  "parking" there and will be moved to another place on that domain, when my website is ready, so no bookmark please. I will post a link when the book has been moved to its final place.
« Last Edit: June 20, 2009, 01:01:36 pm by maxie »

Emmalaura

  • Newbie
  • *
  • Posts: 9
Re: Change Font
« Reply #4 on: June 23, 2009, 12:02:05 pm »

This is very helpful, all my external inks are working now and I even have a contents page!

Thanks so much!

Emma