Re: [XeTeX] where to put woff files

2017-04-07 Thread Bobby de Vos
On 2017-04-06 07:31, Ulrike Fischer wrote:
> Am Thu, 6 Apr 2017 07:10:06 -0600 schrieb Bobby de Vos:
>
>> On 2017-04-06 02:39, Ulrike Fischer wrote:
>>> On the whole I would agree with the debian answer: applications like
>>> xetex/xdvipdfmx shouldn't try to use fonts it can't handle. 
>> Thank you for your response. I will file a bug with Debian at some point.
> Why Debian? I meant it is more a xetex problem so I would add a bug
> report there. 

Sorry for the confusion. I asked about woff files on a Debian email
list, and the response [1] was I should file a bug report against the
package that was choking on the woff files. That package would be the
package containing XeTeX. So I agree, not a Debian bug, but Debian would
receive a bug against the XeTeX package, and presumably forward that bug
to the XeTeX maintainers (which I would imagine are on this xetex list
already).

[1]
https://lists.alioth.debian.org/pipermail/pkg-fonts-devel/2017-April/019338.html

>
>> where do I put the extension? I can place the font name in brackets [],
>> and include the extension, but then I need to supply the entire path to
>> the font file.
> You don't need the full path. This here works fine for me (arial is
> a system font and the other is in the texmf tree):
>
> \font\test="[arial.ttf]:color=FF;mapping=tex-text" at 20pt 
> \test
> alblbl --- 

I had missed that, thank you for pointing it out to me.

Bobby

-- 
Bobby de Vos
/devos.bo...@gmail.com/


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] where to put woff files

2017-04-06 Thread Philip Taylor

Ulrike Fischer wrote:

I wished you would clean up the messages a bit before sending. It is
horribly hard to read if you burry a three liner in the middle of
all sorts of citations and signatures.
I am normally in favour of (extremely) heavy trimming, but in this case 
it is not possible to unambiguously identify either the target of "you" 
or the offending message.

Philip Tayloir


--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] where to put woff files

2017-04-06 Thread Jonathan Kew

On 06/04/2017 15:53, Zdenek Wagner wrote:

2017-04-06 15:31 GMT+02:00 Ulrike Fischer :

Am Thu, 6 Apr 2017 07:10:06 -0600 schrieb Bobby de Vos:


On 2017-04-06 02:39, Ulrike Fischer wrote:

On the whole I would agree with the debian answer: applications like
xetex/xdvipdfmx shouldn't try to use fonts it can't handle.


Thank you for your response. I will file a bug with Debian at some point.


Why Debian? I meant it is more a xetex problem so I would add a bug
report there.


This is certainly not a Debian bug, the font is installed as it should be.
The problem is that it is not supported by XeTeX/xdvipdfmx and it is a question
what XeTeX should do if fontconfig offers an unsupported font


Well... while I agree that we should do something in XeTeX to handle 
this, I also think it is a poor decision on Debian's side to mix .woff 
files, which are explicitly intended for web deployment, alongside .otf 
files that are expected to be available in the local GUI desktop 
environment. These are two distinct categories of resource, and it would 
be more appropriate to keep them separate.


More generally, I think it's a bad idea for a distro or package or 
whatever to install multiple copies of the "same" font (e.g. both 
TrueType and Type1 formats) with the same name where fontconfig will 
find them both.


JK



--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] where to put woff files

2017-04-06 Thread Ulrike Fischer
I wished you would clean up the messages a bit before sending. It is
horribly hard to read if you burry a three liner in the middle of
all sorts of citations and signatures. 



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] where to put woff files

2017-04-06 Thread Zdenek Wagner
2017-04-06 15:31 GMT+02:00 Ulrike Fischer :
> Am Thu, 6 Apr 2017 07:10:06 -0600 schrieb Bobby de Vos:
>
>> On 2017-04-06 02:39, Ulrike Fischer wrote:
>>> On the whole I would agree with the debian answer: applications like
>>> xetex/xdvipdfmx shouldn't try to use fonts it can't handle.
>>
>> Thank you for your response. I will file a bug with Debian at some point.
>
> Why Debian? I meant it is more a xetex problem so I would add a bug
> report there.
>
This is certainly not a Debian bug, the font is installed as it should be.
The problem is that it is not supported by XeTeX/xdvipdfmx and it is a question
what XeTeX should do if fontconfig offers an unsupported font
>
>
>>> And xetex users shold avoid "vage" font loading by adding the
>>> extension if possible.
>
>> How do I specify the extension? If I am using plain XeTeX and have a
>> line such as
>>
>> \font\bodyfont="Andika New Basic/GR" at 12pt
>>
>> where do I put the extension? I can place the font name in brackets [],
>> and include the extension, but then I need to supply the entire path to
>> the font file.
>
> You don't need the full path. This here works fine for me (arial is
> a system font and the other is in the texmf tree):
>
> \font\test="[arial.ttf]:color=FF;mapping=tex-text" at 20pt
> \test
> alblbl ---
>
> \font\test="[texgyrecursor-regular.otf]:color=00FF00" at 20pt
> \test
> alblbl ---
>
> But you won't be able to use font options like /GR (at least that's
> what xetexref says).
>
>
Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz



>
> --
> Ulrike Fischer
> http://www.troubleshooting-tex.de/
>
>
>
> --
> Subscriptions, Archive, and List information, etc.:
>   http://tug.org/mailman/listinfo/xetex



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] where to put woff files

2017-04-06 Thread Ulrike Fischer
Am Thu, 6 Apr 2017 07:10:06 -0600 schrieb Bobby de Vos:

> On 2017-04-06 02:39, Ulrike Fischer wrote:
>> On the whole I would agree with the debian answer: applications like
>> xetex/xdvipdfmx shouldn't try to use fonts it can't handle. 
> 
> Thank you for your response. I will file a bug with Debian at some point.

Why Debian? I meant it is more a xetex problem so I would add a bug
report there. 



>> And xetex users shold avoid "vage" font loading by adding the
>> extension if possible. 
 
> How do I specify the extension? If I am using plain XeTeX and have a
> line such as
> 
> \font\bodyfont="Andika New Basic/GR" at 12pt
> 
> where do I put the extension? I can place the font name in brackets [],
> and include the extension, but then I need to supply the entire path to
> the font file.

You don't need the full path. This here works fine for me (arial is
a system font and the other is in the texmf tree):

\font\test="[arial.ttf]:color=FF;mapping=tex-text" at 20pt 
\test
alblbl --- 

\font\test="[texgyrecursor-regular.otf]:color=00FF00" at 20pt
\test
alblbl ---

But you won't be able to use font options like /GR (at least that's
what xetexref says).



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] where to put woff files

2017-04-06 Thread Bobby de Vos
On 2017-04-06 02:39, Ulrike Fischer wrote:
> On the whole I would agree with the debian answer: applications like
> xetex/xdvipdfmx shouldn't try to use fonts it can't handle. 

Thank you for your response. I will file a bug with Debian at some point.

> On windows where fontconfig is used only by xetex I would try to
> blacklist the faulty fonts with a -pattern (I don't know
> if it would work for the woff-problem) in the fontconfig
> configuration but I don't think that there is an easy way to do
> something like this on linux -- all configuration would affect other
> application. So imho some other way to blacklist fonts/font types
> for xetex/dvipdfmx is needed (luaotfload has a configuration file
> for this).

AFAIK, Windows users don't have this problem. Unless a user or an
installer installed with WOFF files where fontconfig would find them,
there would not be a problem. The issue comes up when the Debian/Ubuntu
packages would place the WOFF files were fontconfig finds them.

> That's the general answer. On the practical side: It can only help
> if you can avoid to put the font somewhere where is disturb xetex.
> And xetex users shold avoid "vage" font loading by adding the
> extension if possible. 

How do I specify the extension? If I am using plain XeTeX and have a
line such as

\font\bodyfont="Andika New Basic/GR" at 12pt

where do I put the extension? I can place the font name in brackets [],
and include the extension, but then I need to supply the entire path to
the font file.

Thanks, Bobby

-- 
Bobby de Vos
/devos.bo...@gmail.com/


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] where to put woff files

2017-04-06 Thread Ulrike Fischer
Am Wed, 5 Apr 2017 10:36:27 -0600 schrieb Bobby de Vos:

> Greetings,
> 
> I have seen reports of problems on XeTeX on Ubuntu not handling woff
> files, both told to me in person and also on the web [1]. I am now
> taking over the Debian/Ubuntu packaging for some fonts (Scheherazade
> included) and wondered where to put woff files, to avoid this problem. I
> could put them in the documentation folder of the package, where some
> sample html and css files could load the woff and display text using the
> woff font.
> 
> I asked this question on the Debian pkg-fonts-devel mailing list, and
> the response [2] contradicted what  Khaled Hosny said in [1]. Khaled's
> position (IIUC) was that the woff files should not be installed where
> fontconfig can find them. Debian pkg-fonts-devel mailing list said to
> file a bug against XeTeX for not validating the results of fontconfig.
> 
> Whose advice should I follow?

On the whole I would agree with the debian answer: applications like
xetex/xdvipdfmx shouldn't try to use fonts it can't handle. 

On windows where fontconfig is used only by xetex I would try to
blacklist the faulty fonts with a -pattern (I don't know
if it would work for the woff-problem) in the fontconfig
configuration but I don't think that there is an easy way to do
something like this on linux -- all configuration would affect other
application. So imho some other way to blacklist fonts/font types
for xetex/dvipdfmx is needed (luaotfload has a configuration file
for this).

That's the general answer. On the practical side: It can only help
if you can avoid to put the font somewhere where is disturb xetex.
And xetex users shold avoid "vage" font loading by adding the
extension if possible. 



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex