Re: [NTG-context] faking fonts with simplefonts

2013-07-26 Thread Wolfgang Schuster

Am 26.07.2013 um 22:22 schrieb Pablo Rodríguez :

> Dear list,
> 
> I don’t get slanted fonts that I have to fake for a monospaced typeface
> that lacks an italic font.
> 
> Here is a sample with a standard font that shows the same problem:
> 
>\usemodule[simplefonts]
>\definefontfeature[fakeitalic][default][slant=.25]
>\setmonofont[DejaVu Sans Mono][italicfont={*},
>  italicfeatures=fakeitalic]
>\setupbodyfontenvironment[default][em=italic]
>\starttext
>\tex{define}{\tt\em},
>{\tt\em}.
>\stoptext
> 
> I can only get the second \em working, unless I don’t fake it.
> 
> What am I doing wrong here?

It’s a (already mentioned) LuaTeX bug.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] OSFONTDIR kills gui fonts.

2013-07-26 Thread john Culleton
On Fri, 26 Jul 2013 22:38:10 +0200
Philipp Gesang  wrote:

> Hi John!
> 
> ·
> 
> > I am tryihg to follow the wiki on "Fonts in Luatex." It suggests the
> > following statement for Linux systems:
> > 
> > export OSFONTDIR="/usr/local/share/fonts;$HOME/.fonts"
> > 
> > But I store my fonts in /usr/share/fonts so I used:
> > 
> > export OSFONTDIR="/usr/share/fonts"
> > 
> > The net effect of this statement was to wipe out all my text fonts
> > used with XFCE4 or KDE, at least when I use my regular user
> > signon.  I examined my /etc/profile, $HOME/.profile, @HOME/.bashrc
> > files and deleted or commented out all references to OSFONTDIR. I
> > still have no gui fonts. 
> 
> Can you clarify what you mean by “wipe out”? Were the font files
> deleted? Are other kinds of fonts (e.g. bitmap/pfb) still
> working?
> 
> > If anyone has any suggestions on how I can revive my gui fonts that
> > would be welcome. Only my regular user signon is affected, But I
> > really want to know what kind of OSFONTDIR statement I can use that
> > won't wipe out my gui fonts. 
> 
> OSFONTDIR is a tex specific (kpathsea and Context) variable that
> I don’t think is used by the system (fontconfig, desktop
> environment). While you were fiddling with font paths, is it
> possible that you accidentally modified something else, like
> ~/.config/fontconfig or /etc/fonts/* ?
> 
> Best regards,
> Philipp

When signed on as my usual username and I fire up the gui I get
squares instead of characters. It works OK if I sign on as an alternate 
user or root. 

I'll try the sudo fc-cache -fv route and see what happens.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] OSFONTDIR kills gui fonts.

2013-07-26 Thread Philipp Gesang
Hi John!

·

> I am tryihg to follow the wiki on "Fonts in Luatex." It suggests the
> following statement for Linux systems:
> 
> export OSFONTDIR="/usr/local/share/fonts;$HOME/.fonts"
> 
> But I store my fonts in /usr/share/fonts so I used:
> 
> export OSFONTDIR="/usr/share/fonts"
> 
> The net effect of this statement was to wipe out all my text fonts used
> with XFCE4 or KDE, at least when I use my regular user signon.  I
> examined my /etc/profile, $HOME/.profile, @HOME/.bashrc files and
> deleted or commented out all references to OSFONTDIR. I still have no
> gui fonts. 

Can you clarify what you mean by “wipe out”? Were the font files
deleted? Are other kinds of fonts (e.g. bitmap/pfb) still
working?

> If anyone has any suggestions on how I can revive my gui fonts that
> would be welcome. Only my regular user signon is affected, But I
> really want to know what kind of OSFONTDIR statement I can use that
> won't wipe out my gui fonts. 

OSFONTDIR is a tex specific (kpathsea and Context) variable that
I don’t think is used by the system (fontconfig, desktop
environment). While you were fiddling with font paths, is it
possible that you accidentally modified something else, like
~/.config/fontconfig or /etc/fonts/* ?

Best regards,
Philipp


pgpdYAlCL7WqL.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] OSFONTDIR kills gui fonts.

2013-07-26 Thread Mica Semrick
Do you perhaps needs to rebuild your font cache?

>From the terminal: sudo fc-cache -fv

Best,
Mica


On Fri, Jul 26, 2013 at 1:15 PM, Pablo Rodríguez  wrote:

> On 26/07/13 21:08, john Culleton wrote:
> > I am trying to follow the wiki on "Fonts in Luatex." It suggests the
> > following statement for Linux systems:
> >
> > export OSFONTDIR="/usr/local/share/fonts;$HOME/.fonts"
> >
> > But I store my fonts in /usr/share/fonts so I used:
> >
> > export OSFONTDIR="/usr/share/fonts"
>
> Hi John,
>
> sorry to read that.
>
> Using the ConTeXt Suite the command I use is:
>
>   export OSFONTDIR="/usr/share/fonts//"
>
> But I append it at the end of tex/setuptex.
>
> I’m afraid I cannot help you with the system fonts, because I don’t use
> ConTeXt from TeXLive 2013.
>
> All I guess is removing all OSFONTDIR from your configuration. (Running
> "grep -irl "OSFONTDIR" ." on your home directory should do the searching
> job.)
>
> Sorry for not being more helpful.
>
> I hope it helps,
>
>
> Pablo
> --
> http://www.ousia.tk
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] faking fonts with simplefonts

2013-07-26 Thread Pablo Rodríguez
Dear list,

I don’t get slanted fonts that I have to fake for a monospaced typeface
that lacks an italic font.

Here is a sample with a standard font that shows the same problem:

\usemodule[simplefonts]
\definefontfeature[fakeitalic][default][slant=.25]
\setmonofont[DejaVu Sans Mono][italicfont={*},
  italicfeatures=fakeitalic]
\setupbodyfontenvironment[default][em=italic]
\starttext
\tex{define}{\tt\em},
{\tt\em}.
\stoptext

I can only get the second \em working, unless I don’t fake it.

What am I doing wrong here?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] OSFONTDIR kills gui fonts.

2013-07-26 Thread Pablo Rodríguez
On 26/07/13 21:08, john Culleton wrote:
> I am trying to follow the wiki on "Fonts in Luatex." It suggests the
> following statement for Linux systems:
> 
> export OSFONTDIR="/usr/local/share/fonts;$HOME/.fonts"
> 
> But I store my fonts in /usr/share/fonts so I used:
> 
> export OSFONTDIR="/usr/share/fonts"

Hi John,

sorry to read that.

Using the ConTeXt Suite the command I use is:

  export OSFONTDIR="/usr/share/fonts//"

But I append it at the end of tex/setuptex.

I’m afraid I cannot help you with the system fonts, because I don’t use
ConTeXt from TeXLive 2013.

All I guess is removing all OSFONTDIR from your configuration. (Running
"grep -irl "OSFONTDIR" ." on your home directory should do the searching
job.)

Sorry for not being more helpful.

I hope it helps,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] OSFONTDIR kills gui fonts.

2013-07-26 Thread john Culleton
I am tryihg to follow the wiki on "Fonts in Luatex." It suggests the
following statement for Linux systems:

export OSFONTDIR="/usr/local/share/fonts;$HOME/.fonts"

But I store my fonts in /usr/share/fonts so I used:

export OSFONTDIR="/usr/share/fonts"

The net effect of this statement was to wipe out all my text fonts used
with XFCE4 or KDE, at least when I use my regular user signon.  I
examined my /etc/profile, $HOME/.profile, @HOME/.bashrc files and
deleted or commented out all references to OSFONTDIR. I still have no
gui fonts. 

If anyone has any suggestions on how I can revive my gui fonts that
would be welcome. Only my regular user signon is affected, But I
really want to know what kind of OSFONTDIR statement I can use that
won't wipe out my gui fonts. 

I can of course move the pertinent fonts to the fonts directories in
my /usr/local/texlive etc. file structure. But I am looking for a more
general solution.

Slackware 14 64 bit and texlive 2013

As always, thanks in advance to those who reply:

John Culleton
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___