xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Bernardo <lmpmberna...@gmail.com>
Subject Re: Fonts in config file
Date Tue, 17 Apr 2012 14:26:06 GMT
Try to add something like this to the <fonts> element of your
renderer. So for PDF that would be the <fonts> element inside
<renderer mime="application/pdf">.

        <font kerning="yes"
embed-url="/usr/share/fonts/truetype/msttcorefonts/Arial.ttf">
          <font-triplet name="Arial" style="normal" weight="normal"/>
          <font-triplet name="ArialMT" style="normal" weight="normal"/>
        </font>

This with no auto-detect means you get the default FOP Symbol for the
bullet, and you get the Ohm from the Arial font configured above. Make
sure that the embed-url points to your local Arial.ttf file.


On Tue, Apr 17, 2012 at 1:05 PM, froglander <Kristina.Heredia@trax.aero> wrote:
>
> I would gladly do that if it were an option, but the file that has
>
> <fo:inline font-size="8pt" font-family="Symbol">*</fo:inline>
>
> is one that is given to me as is, not one I can modify.  Is there a way to
> tell it to use a different font if it encounters font-family="Symbol"?
>
> I've tried going here
> http://xmlgraphics.apache.org/fop/1.0/fonts.html#substitution
> http://xmlgraphics.apache.org/fop/1.0/fonts.html#substitution  but I can't
> seem to get it to /do/ anything.
>
>
>
>
>
> lmpmbernardo wrote:
>>
>>
>> Arial also has a bullet. Why not just use that since you already get the
>> Ohm symbol from Arial?
>>
>> On 4/16/12 9:56 PM, froglander wrote:
>>> Thank you very much for that information.
>>>
>>> Would there be a way (and I've tried using the substitutions but with no
>>> luck so I assume I am doing something wrong) to tell it to use a
>>> different
>>> font other than the operating system Symbol font?
>>>
>>>
>>>
>>> cbowditch wrote:
>>>> On 12/04/2012 14:00, froglander wrote:
>>>>> If I have<auto-detect />   in the userconfig.xml file this line
>>>>>
>>>>> <fo:inline font-size="8pt" font-family="Symbol">*</fo:inline>
>>>>>
>>>>> Ends up displaying as a # symbol in the resulting pdf file print.
>>>>>
>>>>> If I take<auto-detect />   out of the userconfig.xml file, then
the
>>>>> above
>>>>> line works but the following line does not.
>>>> That's because there are 2 version of the font named Symbol; The Base 14
>>>> font Symbol that is included with FOP by default. That is the version
>>>> used when<auto-detect/>  is absent from the fop.xconf file and the
>>>> symbol.ttf file installed in the operating system. The bullet character
>>>> is not present in the Operating System version of Symbol or at least its
>>>> accessed via a different Unicode reference.
>>>>
>>>>> <fo:inline font-size="11pt" font-family="Arial,
>>>>> sans-serif">Ω</fo:inline>
>>>> Arial is not available as part of the Base 14 fonts, so you must
>>>> register it in the fop.xconf. Since<auto-detect/>  adds every font
>>>> installed in the Operating System I suggest you manually add individual
>>>> fonts that you wish to use (such as Arial) using the  element as
>>>> described in [1]
>>>>
>>>> Thanks,
>>>>
>>>> Chris
>>>>
>>>> [1] http://xmlgraphics.apache.org/fop/1.0/fonts.html#register
>>>>
>>>>> Is any more information needed?  I need this to be able to show
>>>>> bulleted
>>>>> lists as well as possible 'special' characters.
>>>>>
>>>>> Thanks!
>>>>>
>>>>>
>>>>>
>>>>> froglander wrote:
>>>>>> In this case it is using te symbol font for the bullets.
>>>>>>
>>>>>> Rob Sargent-4 wrote:
>>>>>>> Not all fonts have bullets.  Which are you using?
>>>>>>>
>>>>>>> rjs
>>>>>>>
>>>>>>> On 04/11/2012 02:34 PM, froglander wrote:
>>>>>>>> I am using FOP 1.0 and am having difficulty getting bullets
and
>>>>>>>> symbols
>>>>>>>> to
>>>>>>>> display correctly.
>>>>>>>>
>>>>>>>> I have found that if I take the<auto-detect />    the
bullets for
>>>>>>>> the
>>>>>>>> bulleted
>>>>>>>> list (rich text format) will show, but them some other symbols
(like
>>>>>>>> the
>>>>>>>> Ohm
>>>>>>>> symbol, etc) show as #.  If I keep the<auto-detect />
   in, the
>>>>>>>> bulleted
>>>>>>>> list
>>>>>>>> shows as # symbols, but the Ohm symbol, etc display correctly.
>>>>>>>>
>>>>>>>> Is something missing for the fonts?
>>>>>>>>
>>>>>>>> Thanks!
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>>>>>> For additional commands, e-mail:
>>>>>>> fop-users-help@xmlgraphics.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>>>
>>>>
>>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/Fonts-in-config-file-tp33671500p33701165.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message