3 Replies Latest reply on Nov 12, 2013 10:59 PM by elainecc

    Using more than one web font in the same text field

    ladobeugm Level 1

      I know I can do something like this when calling more than one weight in a web font:

       

      sym.$('copy').html('<span style="font-weight: 700;">Adobe</span> | About Us')

       

      And the word Adobe will be bolder than About Us. But what about using more than one font in the same text field? I tried this:

       

      sym.$('copy').html('<span style="font-family: 'Open Sans', sans-serif;">UHLIG</span> | About Us')

       

      Now that doesn't work and I get a SyntaxError: missing ) after argument list

       

      I then tried

       

      sym.$('copy').html('<span style="font-family: "Open Sans", sans-serif;">UHLIG</span> | About Us')

       

      and the text rendered but whatever was selected in the font menu was what got displayed.

       

      Is there a way around this to display two different fonts, web fonts or not, in the same field?