help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: qt: available fonts


From: Dmitri A. Sergatskov
Subject: Re: qt: available fonts
Date: Thu, 28 Jul 2016 07:01:54 -0500

On Thu, Jul 28, 2016 at 5:00 AM, Tatsuro MATSUOKA <address@hidden> wrote:
----- Original Message ----->

>On Thu, Jul 28, 2016 at 10:36 AM, Tatsuro MATSUOKA <address@hidden> wrote:
>
>>From: Clinton Winant 
>>>To: Octave Help
>>>Date: 2016/7/28, Thu 18:17
>>>Subject: qt: available fonts
>>>
>>>
>>>Is there a way of listing available fonts for qt that are similar for the terminal and print outputs?  Can any of these be used at font angle different from 0 or 90?  This is useful for label individual curves on a plot.
>>>
>>
>>
>>When submitting a question, please write 
>>1. octave version
>>2. platform and its version (e,g, windows 10, Ubuntu 16.04)
>> 
>>Octave GUI uses fontconfig  for font handling.
>>
>>If you are using octave on linux, execute from terminal
>>
>>$ fc-list 
>>To redirect to file
>>$ fc-list > list.txt
>>
>>On windows, execute octave
>>>> system ('fc-list > list.txt ')
>>
>>Note that list.txt is utf-8 encoded.
>>
>>HTH
>>
>>Tatsuro
>>


>From: Clinton Winant 
>To: Tatsuro MATSUOKA 
>Cc: Octave Help 
>Date: 2016/7/28, Thu 18:52
>Subject: Re: qt: available fonts

>
>octave4.0.3 on ubuntu 16.04
>
>
>Sorry I wasn't asking about the fonts used by Octave GUI, I was asking about the fonts available for plotting, as in eg
>
>text(x,y,'blah-blah','fontname','????')
>
>
>The only one I know that works is 'Times New Roman'
>
Sorry I also writing badly.
On current octave, on qt and fltk graphics toolkit, 
fonts is handle by fontconfig library.

So available font can be listed one of the fontconfig utility fc-list.
So the I described how to use fc-list.

If you use Google, you can get more information about fc-list and fontconfig.

HTH

​Unfortunately, when making a postscript output, one's choice is limited by gl2ps:

http://www.geuz.org/gl2ps/#tth_sEc2.2

<<<<
The names of the 14 standard Type 1 fonts are as follows: Times-Roman, Times-Bold, Times-Italic, Times-BoldItalic, Helvetica, Helvetica-Bold, Helvetica-Oblique, Helvetica-BoldOblique, Courier, Courier-Bold, Courier-Oblique, Courier-BoldOblique, Symbol and ZapfDingbats. These fonts, or their font metrics and suitable substitution fonts, are guaranteed to be available to the viewer application. Using any other font will result in a non-portable PostScript or PDF file, as GL2PS does not include any font description in its output stream.
>>>>



 

Tatsuro


​Dmitri.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]