Hm – we seem to have a knack of misunderstanding each other, which is
unfortunate. Your second answer was just what I needed, though; also, well
documented – and clearer than the online Help :-} Thanks!

I now understand that what's left over comes not from XXE but from fonts: I
can't find a TTF that includes a bold version of U+2C50, and the conversion
for <uicontrol> appears to specify boldface. Not a problem, as I said: I
can use Acrobat X to tweak the .pdf for the single page where I needed to
include that particular glyph in a <uicontrol>.

N

minor observations

   - When you said *I really don't understand why the left arrow used in
   <menucascade> (&#x2192;) is considered by FOP and XEP to be a 'tall
   character'*, and then went on to talk about U+2C50, I read this as 'what
   FOP does with U+2192 is just one of those things' – I've been working with
   computers for long enough to realise this is, sometimes, the only possible
   answer, so stopped worrying about it and went on to read what you'd said
   about U+2C50 as though it were a separate issue.


   - the FAQ topic on custom .pdf fonts uses the verb "substitute"; the
   Help topic on FOP Options uses the verb "replace", but the dialog-box* has
   the title *Choose a TTF font*. Since it's impossible to substitute or
   replace without specifying two things –  replace A with B – seeing a dialog
   where I can specify one thing is pretty confusing! What the dialog is
   actually for is *adding* a TTF font.


   - I ought to have mentioned which version of XXE I was using, as then
   you could have told me to update to a version that *does* let me drag
   font names …


* not that you need to know this, but program (in computing) and dialog-box
are two cases where UK English consistently uses US spelling :-}


On Thu, Apr 17, 2014 at 4:52 PM, Hussein Shafie <[email protected]> wrote:

> I've already answered your questions. In a nutshell, my answers were:
>
> Step 1) You want "Letter Gothic Standard" instead of "Symbol" for the
> menucascade separator, then use our XSL customizer to add attribute
> font-family="Letter Gothic Standard" to attribute-set
> "menucascade-separator".
>
> Once you have done this, please generate a .docx file and open it in
> MS-Word. You'll see by yourself that the font of the menucascade separator
> is "Letter Gothic Standard" (assuming that you actually have this font on
> your computer).
>
> Now step 1) is not sufficient for the PDF output, as the PDF format does
> not support font "Letter Gothic Standard". For the PDF output, you need to
> instruct FOP to embed parts or all of font "Letter Gothic Standard" in the
> PDF file.
>
> For the PDF output, you must additionally perform step 2).
>
> Step 2) Select Options|Preferences. Select Add-on|FOP. Drop the .ttf or
> .ttc file containing "Letter Gothic Standard"  (NOT the whole
> C:\Windows\Fonts\ directory) to the list. Click OK and restart XXE.
>
> Yes, that's it. From now, FOP knows what is font "Letter Gothic Standard".
>
> I did that (using font "Impact" because I have no "Letter Gothic Standard"
> font on my computer). It took me just 5 minutes to create all the files
> attached to this email. It worked flawlessly.
>
>
>
> References:
>
> * The "Customize Document Conversion Stylesheets" dialog box --
> http://www.xmlmind.com/xmleditor/_distrib/doc/help/
> com.xmlmind.xmleditapp.kit.part.ConversionStylesheetsEditor.html
>
> * Apache FOP options -- http://www.xmlmind.com/
> xmleditor/_distrib/doc/help/addonOptions.html#fopOptions
>
>
>
> Attachments:
>
> * Sample document: Test.dita.
>
> * .xsl file containing customized attribute-set "menucascade-separator"
> (created using XMLmind XSL Customizer, not by hand): fo_custom.xsl.
>
> * After specifying fo_custom.xsl for the "RTF, WML and .docx" output
> formats, generated: Test.docx (the font of the separator is indeed seen as
> Impact by MS-Word).
>
> * After specifying fo_custom.xsl for the "PDF and PostScript" output
> formats, generated incorrect Test_before_2.pdf.
>
> * After dropping C:\Windows\Fonts\impact.ttf onto FOP preferences sheet
> and restarting XXE, generated correct Test.pdf (Looks OK and Acrobat Reader
> says that font "Impact" is embedded in the file).
>
>
>
>
>
> On 04/17/2014 02:15 PM, Niels Grundtvig Nielsen wrote:
>
>> Since I'm lucky enough to have Acrobat X, I can just open the .pdf
>> output and touch up the font property of the problem character. Takes
>> the urgency off the question, but I would still like to know how to
>> achieve the required result by making more informed use of XXE … and for
>> the time being, I'm still very confused :-{
>>
>>
>> *what I've seen happen*
>>
>>
>> the default .pdf conversion does not render a glyph I select from the
>> XXE symbols pallette correctly, even though it is displayed on screen
>>
>>
>> *what you've explained*
>>
>>
>> this is what we can expect, because by default the .pdf conversion uses
>> the Symbol font that does not contain this glyph
>>
>>
>> *what I need to do*
>>
>>
>> I imagine, from your explanation and from other experiments, this is a
>> two-step procedure:
>>
>>  1. include a font (for example, Letter Gothic Standard) in the "embed
>>
>>     fonts" list in the FOP options
>>  2. edit the attribute set in the custom XSLT stylesheet to make .pdf
>>
>>     conversion use this font – for example, <uicontrol
>>     font-family="Letter Gothic Standard">
>>
>> *what the FAQ say*
>>
>> *A:* By default, PDF uses its 14 built-in fonts: Times, Helvetica,
>>
>> Courier, Symbol and ZapfDingbats. These fonts have glyphs only for the
>> western (AKA Latin1) languages. Therefore you need to substitute to
>> these built-in fonts truly multilingual fonts [...] This can be done
>> from within XMLmind XML Editor. More information in XMLmind XML Editor -
>> Online Help, Apache FOP options and RenderX XEP options
>>
>>
>> The link to Apache FOP options takes me to /6.13. Add-on options >
>>
>> 6.13.1. Apache FOP options > Procedure 9.2. How to choose specific fonts
>> (for example, you want to replace Times fonts by Georgia fonts)/
>>
>>
>>
>> I have read, re-read and experimented – complete lack of success :-{
>>
>>   * the procedure says nothing about /replacing /or /substituting/ – it
>>
>>     just talks about adding a TTF font to the list
>>   * the list looks as though it's related to the 14 standard PS fonts …
>>
>>     but does not include Symbol or ZapfDingbats
>>   * alerted by the warning about Windows, I've tried drag and drop from
>>
>>     C:\windows\fonts to the list … no luck on this Windows 7 PC; I've
>>     also tried typing in the path and filename, and that doesn't work
>> either
>>
>> Following your advice to read the help topics on
>> editConversionStylesheetsAction and xslcustom.Customizer has improved my
>> general understanding, but I'm no nearer being able to carry out the one
>> piece of customisation I'm aiming for: telling FOP to use Letter Gothic
>> Standard instead of Symbol when rendering a UIcontrol element.
>>
>>
>> Any chance you can come up with a new way of guiding my idiot footsteps
>> through this task? unfortunately, I'm not managing to interpret either
>> the interface or the helps in a way that solves my problem. As I said,
>> it is less urgent now I've worked out how to adjust the final .pdf myself.
>>
>>
>> Thanks in advance!
>>
>>
>> Niels Grundtvig Nielsen
>>
>> Technical Communicator
>>
>> /you know what you're talking about – I can help you say it/
>>
>>
>>
>>
>>
>>
>> --
>> XMLmind XML Editor Support List
>> [email protected]
>> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
>>
>>
>
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to