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


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

Re: Formatting Unicode symbol in a label

Newsgroups comp.graphics.apps.gnuplot
Date 2014-01-04 23:56 -0800
References <f42d0c0d-5118-47af-96b5-2289abd59dcb@googlegroups.com>
Message-ID <ba537ae5-e913-4984-88f7-85aacee0cc71@googlegroups.com> (permalink)
Subject Re: Formatting Unicode symbol in a label
From "Dan'l B" <dan.hinckley@gmail.com>

Show all headers | View raw


On Saturday, January 4, 2014 1:32:56 PM UTC+1, Dan'l B wrote:
> Given a line such as
> 
> 
> 
> "" u (myDateSP(1,2)):3:((strcol(4) eq "First") ?  ("U+1F311"):1/0) w labels left font "Arial Unicode MS,18" offset -4,0,\
> 
> 
> 
> How do I insert the Unicode codepoint for a quarter moon symbol (for example)? The above formatting doesn't work.
> 
> 
> 
> Arial Unicode MS includes that unicode character. Times New Roman PSMT also supports it; both are available on my system.
> 
> 
> 
> OSX 10.6.8
> 
> GN   4.6 patchlevel 4
> 
> pdfcairo installed
> 
> using PDF terminal

Failure: it simple prints the literal codepoint: U+1F311

This, for example, works, but only with Aqua and SVG terminals; it fails in PDF (prints the literal "G"):

"" u (myDateSP(1,2)):3:((strcol(4) eq "First") ?  ("G"):1/0) w labels left font "Moon Phases,28" offset -4,0,\

(Moon Phases is an old symbol font; it fails in PDF using any of its variants: TTF, PS, OTF.)

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


Thread

Formatting Unicode symbol in a label "Dan'l B" <dan.hinckley@gmail.com> - 2014-01-04 04:32 -0800
  Re: Formatting Unicode symbol in a label Karl <mail.kfr@gmx.net> - 2014-01-04 18:16 +0100
  Re: Formatting Unicode symbol in a label Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2014-01-04 19:09 +0100
  Re: Formatting Unicode symbol in a label "Dan'l B" <dan.hinckley@gmail.com> - 2014-01-04 23:56 -0800
    Re: Formatting Unicode symbol in a label Karl <mail.kfr@gmx.net> - 2014-01-05 18:44 +0100
  Re: Formatting Unicode symbol in a label "Dan'l B" <dan.hinckley@gmail.com> - 2014-01-05 00:05 -0800
    Re: Formatting Unicode symbol in a label Karl <mail.kfr@gmx.net> - 2014-01-05 18:28 +0100
  Re: Formatting Unicode symbol in a label "Dan'l B" <dan.hinckley@gmail.com> - 2014-01-05 18:08 -0800
  Re: Formatting Unicode symbol in a label "Dan'l B" <dan.hinckley@gmail.com> - 2014-01-07 08:22 -0800
    Re: Formatting Unicode symbol in a label Ethan A Merritt <merritt@u.washington.edu> - 2014-01-07 13:18 -0800
      Re: Formatting Unicode symbol in a label "Dan'l B" <dan.hinckley@gmail.com> - 2014-01-07 23:59 -0800
  Re: Formatting Unicode symbol in a label "Dan'l B" <dan.hinckley@gmail.com> - 2014-01-07 08:28 -0800

csiph-web