DITA and XMetaL Discussion
txvia November 8, 2011 at 5:11 pm
Embed custom font in webhelp outputNovember 8, 2011 at 5:11 pmParticipants 4Replies 5Last Activity 11 years, 2 months ago
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
Thanks.Derek Read November 8, 2011 at 5:54 pm
Reply to: Embed custom font in webhelp outputNovember 8, 2011 at 5:54 pm
You 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 outputNovember 8, 2011 at 6:31 pm
Hi 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 outputNovember 8, 2011 at 8:23 pm
Yes, 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 outputNovember 8, 2011 at 8:30 pm
If 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).
- You must be logged in to reply to this topic.