Maian Script World on Facebook Maian Script World on Twitter Maian Script World - Latest News Maian Script World on YouTube Maian Script World on LinkedIn


Please Read

You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.

IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.

You are not logged in.

#1 28-02-2012 13:04:12

gwp
Members
Registered: 26-05-2009
Posts: 119

Applying custon fonts - Is it possible ?

I have a customer who has bought a font and wants to use it on her cart.
She would like it used for such things as categories and product titles.

It is not listed on google fonts and a small amount of googling leaves me undecided if this is possible or not.

Some say i can up (ftp) the font and link to it, but I am unsure if this is possible using the stylesheet?

Offline

#2 28-02-2012 14:11:53

pabs11
Members
Registered: 03-08-2009
Posts: 111

Re: Applying custon fonts - Is it possible ?

hi gwp

I've used 'cufon' on a site and it works pretty well. You can use / convert most fonts to be usable and it's a fairly simple js set up. ( I'm no coder and I was able to do it )

Try this link for starters :

http://fearlessflyer.com/2009/10/cufonize-your-pages-how-to-add-cufon-to-your-web-design/

...and google for more.

Pretty good really.

--------------------------------

And this too, also cufon  :

http://www.viget.com/inspire/cufon-font-replacement-the-good-and-the-bad/

Last edited by pabs11 (28-02-2012 14:20:08)

Offline

#3 28-02-2012 16:41:38

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: Applying custon fonts - Is it possible ?

Yes, as already mentioned, custom fonts can be used pretty much anywhere and are fairly easy to work with.

Thanks pabs.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#4 28-02-2012 18:49:18

gwp
Members
Registered: 26-05-2009
Posts: 119

Re: Applying custon fonts - Is it possible ?

thanks guys ill give it a look smile

Offline

#5 29-02-2012 07:46:07

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: Applying custon fonts - Is it possible ?

No problem George, let us know how you get on.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#6 01-03-2012 08:56:24

gwp
Members
Registered: 26-05-2009
Posts: 119

Re: Applying custon fonts - Is it possible ?

An update for you guys.

I found the cufon quite easy to use following the guide given by pabs11 (Thanks pabs)
and have installed the font requested. I need to play a little more with the CSS to work out what
variables to place in the cufon script (such as h2, h3).

I did go the whole hog and also add "p" which worked well except on one custom page (written in html/dreamweaver) which uses a different font to what the cart uses (Georgia) and all instances of this were shown as blank text.

I removed the "p" and it was fine.
I think i need to move to the next stage of also using jquery as I am wanting only certain sections to use this font, such as
category names in left menu.

But overall this works for me, i just need to work out what the font variable in the CSS is for the sections i need.]
Thanks again smile

Offline

#7 01-03-2012 12:52:37

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: Applying custon fonts - Is it possible ?

Excellent. Oh and jQuery is a lot of fun. smile


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#8 03-03-2012 11:43:24

gwp
Members
Registered: 26-05-2009
Posts: 119

Re: Applying custon fonts - Is it possible ?

ok, have now moved to next level of using jquery.
I now have a problem in understanding the CSS.

the section below is taken for the example site mentioned earlier
------------------------------------------------------------
<script type="text/javascript"> 
    Cufon.replace('h3#convert-me, p#convert-me-too');
</script>

The above code will Cufonize only the h3 tags with the id of “convert-me”, and p tags with the id of “convert-me-too”.
--------------------------------------------------------------

I want to convert only the categories, such as book, cds etc from the left menu.

Could you please show me a line of css that has a tag and an id as an example, then i can search the stylesheet for it and go through and find the sections within the CSS i need to replace.
I just need a sample so i know where to start.

Thanks smile

Offline

#9 04-03-2012 09:13:29

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: Applying custon fonts - Is it possible ?

Sorry George, I don`t quite follow. You want the jquery css syntax??


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#10 04-03-2012 09:59:51

gwp
Members
Registered: 26-05-2009
Posts: 119

Re: Applying custon fonts - Is it possible ?

Sorry David, ill try again smile
in my header i have this
"    Cufon.replace('h1, h2, h3');", so just doing those 3
(I presume tags, but not sure what they are called)

If i take, for instance the footer section of the cart shown here
cufon1.jpg

then show source code
---------------------------------------------------------------------------------
    <div class="right">
 
      <h3>Sign up for news, events or product offers:</h3>
      <p>
      <span class="inputbox"><input type="text" name="newsletter" value="" id="newsletter" class="box" /> <input type="button" title="Signup" value="&gt;" class="button" onclick="newsletterSignup()" /></span>
      <span class="inputradio">Subscribe: <input checked="checked" type="radio" name="newstype" value="sub" /> Unsubscribe: <input type="radio" name="newstype" value="unsub" /></span>
      </p>
     
       
    </div>
---------------------------------------------------------------------------------

i can see its cufonising the h3 tag, but it isnt doing the subscribe/unsubscribe text.

If i add the "p" tag to the header, it does nearly all the text, which is too much.

In the CSS for the cart there must be some code that tells the browser how to display the text (and what font) to use for the display of the sub/unsub text.

Maybe its this part that is called the "id"

something like
Cufon.replace('h3#span class="inputradio');

so.... after all that LOL, it just cufonsies that small section of text. smile

Offline

#11 04-03-2012 19:02:54

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: Applying custon fonts - Is it possible ?

If you look at the source code you can see the relevant wrappers involved. The would be:

.innerFooterBar .right p

If nothing exists in the stylesheet, in inherits from its parent.

So, maybe:

Cufon.replace('.innerFooterBar .right p');


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#12 04-03-2012 22:01:51

gwp
Members
Registered: 26-05-2009
Posts: 119

Re: Applying custon fonts - Is it possible ?

thanks David. i will give that a go smile

Offline

#13 05-03-2012 07:37:16

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: Applying custon fonts - Is it possible ?

No probs George.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#14 05-03-2012 10:19:49

gwp
Members
Registered: 26-05-2009
Posts: 119

Re: Applying custon fonts - Is it possible ?

That example you gave me David, did the trick.
Thanks
I now have my head around it smile

Offline

#15 05-03-2012 10:46:28

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: Applying custon fonts - Is it possible ?

gwp wrote:

That example you gave me David, did the trick.
Thanks
I now have my head around it smile

Thats great George. I did play around with custom fonts with Maian Support 2.1 funnily enough. But, in the end I decided to keep it standard. There are too many nice fonts and finding the right one can sometimes be time consuming.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

Board footer

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World.© 2003-2013 David Ian Bennett. All Rights Reserved | Forum: FluxBB

Privacy Policy | Refund Policy