Rank: Member
Joined: 1/23/2013(UTC) Posts: 267 Location: Joliet, IL
Thanks: 64 times
|
Is there a way to do a font drop-down menu where each font option is (or has) an example of that font? Since I offer Japanese, I would also need capability to make a portion of the option Japanese font (see attached). TKatch attached the following image(s): fonts.gif (16kb) downloaded 1 time(s).You cannot view/download attachments. Try to login or register.
|
|
|
|
Rank: Member
Joined: 4/29/2010(UTC) Posts: 256
Thanks: 4 times Was thanked: 11 time(s) in 10 post(s)
|
The only way I can see you being able to do this is via a custom control and use CSS on the option properties in order to set the font family. This will only work correctly if you include the web font for each individual type face within your CSS. The above method will work for IE 11 and Edge and most recent versions of Chrome and Firefox so check your Analytics before going down this route. Your other option is to use a JavaScript solution such as http://lindekleiv.bitbucket.org/fontselector/ which is built on jQuery. I would also offer a word of caution about displaying Japanese text. Customers who do not have a Japanese language pack installed or the web font does not contain Japanese characters will see squares instead of text. It therefore maybe easier to use an image for that part? If however you decide to use Japanese text please ensure your page is set to utf-8. You can do this by including the following meta tag as part of your product template master page. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
I think the only reliable way to do this cross-browser is with images. You can't do image dropdowns in HTML so you'll need a JavaScript solution for this. Here's an example: http://www.thestampmaker..._TRODAT_PRINTY_4915.aspx |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
|
|
|
Rank: Member
Joined: 1/23/2013(UTC) Posts: 267 Location: Joliet, IL
Thanks: 64 times
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.