Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1774

Re: Italic fonts on windows ? update

From sfeam <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Italic fonts on windows ? update
Followup-To comp.graphics.apps.gnuplot
Date 2013-04-22 22:21 -0700
Organization gnuplot development team
Message-ID <kl55k0$d4d$1@dont-email.me> (permalink)
References (1 earlier) <kl2baf$2fo$1@news.rz.uni-karlsruhe.de> <kl29dn$r4$1@dont-email.me> <kl37l6$dog$1@news.rz.uni-karlsruhe.de> <kl3ltq$lhe$1@dont-email.me> <op.wvyxnob8zrz2e1@aluminiumdreams.local>

Followups directed to: comp.graphics.apps.gnuplot

Show all headers | View raw


Ed Bennett wrote:

> On Mon, 22 Apr 2013 16:47:58 +0100, sfeam
> <sfeam@users.sourceforge.net> wrote:
>> I'm not sure.  I think it's OK to have spaces in the font name.
>> The problem would be if there are embedded hyphens, which would
>> be replaced (incorrectly in this case) by spaces.
> 
> I posted a thread about this a couple of weeks ago; whilst fonts with
> spaces in are fine in "set term", in a label ("{/FontName}") spaces
> aren't allowed as the enhanced parser doesn't call the routine to
> convert hyphens to spaces (and turn Bold and Italic to atributes).

The issue is not that it's a label, the issue is whether or not
you go through the enhanced text mode processing.
So these work fine:
   set label 1 at 0,-1 "Fancy Label" font "Times Italic-Bold"
   set label 2 at 0,1  "Fancier Label" font "Vladimir Script, 15"
But this not so well:
   set label 3 at 0,0 "Default {/Times-Bold Times-Bold}"

> I haven't had the time to walk through the source and work out what IS
> called, though. (Getting it to substitute for spaces is relatively
> trivial, as is making it allow hyphens by choosing a different
> substitution character; getting the bold/italic attributes isn't
> though since the cairo functions aren't accessible from the enhanced
> parser.)

Somewhere in the "requested features" backlog is a suggestion to
add Bold and Italic to the enhanced text properties.  That seems
reasonable to me, but I have not tried to figure out how much work
it would require.  Another option may be to modify the enhanced
text routines in only the cairo terminal drivers.

So your point is well taken about limitations on font attributes
in enhanced text mode.  But I think that's a step beyond the 
problem report that started this thread.

By the way, the cairo terminals in the development version now
recognize backslash as an escape character in font names, 
so if you are unfortunate enough to have a font with embedded hyphens 
you can specify it like this:
   set term wxt font 'Hershey\-Gothic\-German'
[The Hershey fonts don't render correctly in pango/cairo for other
reasons, but they're the only ones I have with a hyphen in the name] 

	Ethan

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Italic fonts on windows ? Karl <mail.kfr@gmx.net> - 2013-04-17 18:27 +0200
  Re: Italic fonts on windows ? update Karl <mail.kfr@gmx.net> - 2013-04-22 03:37 +0200
    Re: Italic fonts on windows ? update sfeam <sfeam@users.sourceforge.net> - 2013-04-21 20:08 -0700
      Re: Italic fonts on windows ? update Karl <ratzsch@polymer.uka.de> - 2013-04-22 11:41 +0200
        Re: Italic fonts on windows ? update sfeam <sfeam@users.sourceforge.net> - 2013-04-22 08:47 -0700
          Re: Italic fonts on windows ? update "Ed Bennett" <ed.bennett@ntlworld.com> - 2013-04-23 01:44 +0100
            Re: Italic fonts on windows ? update sfeam <sfeam@users.sourceforge.net> - 2013-04-22 22:21 -0700
              Re: Italic fonts on windows ? update Karl <mail.kfr@gmx.net> - 2013-04-23 08:44 +0200
                Re: Italic fonts on windows ? update Karl <mail.kfr@gmx.net> - 2013-04-23 09:34 +0200
                Re: Italic fonts on windows ? update sfeam <sfeam@users.sourceforge.net> - 2013-04-23 08:54 -0700
                Re: Italic fonts on windows ? update Karl <mail.kfr@gmx.net> - 2013-04-23 21:14 +0200
                Re: Italic fonts on windows ? update sfeam <sfeam@users.sourceforge.net> - 2013-04-23 14:58 -0700
                Re: Italic fonts on windows ? update Karl <ratzsch@polymer.uka.de> - 2013-04-24 14:28 +0200

csiph-web