DITA and XMetaL Discussion
XMetaL Community Forum › DITA and XMetaL Discussion › Embed custom font in webhelp output
-
txvia November 8, 2011 at 5:11 pm
Embed custom font in webhelp output
November 8, 2011 at 5:11 pmParticipants 4Replies 5Last Activity 11 years, 2 months agoHi, I've been given a task to embed proprietary fonts in our webhelp output. I know for a fact that Cufon has a solution for this by generating a custom javascript through their website and include it in the webhelp output:[url=http://cufon.shoqolate.com/generate/] http://cufon.shoqolate.com/generate/%5B/url%5D; this works however, only for our corporate website but not for the webhelp output, which I think should work the same way by including the generated javascript and add tags in the html file that call this javascript. My question is: Is this feasible? I assume if it works in the production website, it should work on the local copy of webhelp too since javascripts work well for both online and offline html files.
I am attaching the two fonts I want to embed into my webhelp output for your reference.
Here is the corporate website I am referring to: [url=http://www.txvia.com]http://www.txvia.com
[/url]
Thanks.Derek Read November 8, 2011 at 5:54 pm
Reply to: Embed custom font in webhelp output
November 8, 2011 at 5:54 pmYou will need to know what changes need to be made first. So, I think it would be best to do this:
1. Generate output to Webhelp.
2. Compare that with what you need to put on the website and figure out what changes need to be made.
3. Make changes to the XSLT that produces the Webhelp.If you can't figure out #2 on your own it would be best to pass the files produced along to your website people and have them do that. Once the changes are set in stone I think I can probably help you with #3, if you need it.
Our WebHelp plug-in is inside a subfolder called “webhelp”. For the deployed instance of the DITA OT that would be here:
%appdata%SoftQuadXMetaL SharedDITA_OTdemowebhelptxvia November 8, 2011 at 6:31 pm
Reply to: Embed custom font in webhelp output
November 8, 2011 at 6:31 pmHi Derek, as always, thanks for the quick reply. My question is not so much on how to use certain fonts in the html output, but rather on how to “embed” proprietary fonts in the html pages that are ordinarily not installed in users' computers. I mentioned Cufon because that is a widely used method to embed fonts in html pages. I assume if it works for ordinary production html-based sites, it should work for local copies of html pages as well. Thanks again.
Derek Read November 8, 2011 at 8:23 pm
Reply to: Embed custom font in webhelp output
November 8, 2011 at 8:23 pmYes, I understood. I can't think of anything that would stop the HTML produced for our WebHelp from working with other scripts short of there being some conflict between the scripts used for the Cufon font functionality interfering with the scripts we deliver that drive the ToC, and Search.
I would hand this off to your website people to debug. Is that feasible? Something like FireBug should give you an idea fairly quickly if that's the issue. All of the scripts used by the WebHelp that XMetaL produces are all inside .js files inside the xmwebhelpscript folder.
Derek Read November 8, 2011 at 8:30 pm
Reply to: Embed custom font in webhelp output
November 8, 2011 at 8:30 pmIf Cufon is too much trouble there is also this: https://typekit.com
I've seen demos of that solution (before Adobe bought them) and it would seem to be the cleanest, most standards-compliant solution for what you need. It also avoids legal issues that you probably need to worry about when using other solutions (where you might accidentally deliver a font that you should not be due to font licensing terms).
-
AuthorPosts
- You must be logged in to reply to this topic.