[Top][All Lists]

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

Re: qt: available fonts

From: Clinton Winant
Subject: Re: qt: available fonts
Date: Thu, 28 Jul 2016 14:25:05 +0100

I have figured out that it is possible to print text at any angle, using the trick of printing to a latex file
then editing the line to be rotated in temp.tex as follows:

\selectfont\put(372.48,76.6864){\rotatebox{30}{\makebox(0,0)[l]{\textcolor[rgb]{0,0,0}{{Kelvin waves}}}}}

This would write "Kelvin waves" at a 30 deg angle to the horizontal

On Thu, Jul 28, 2016 at 1:01 PM, Dmitri A. Sergatskov <address@hidden> wrote:
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.

>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
>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.


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

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.




reply via email to

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