Is it possible to get the output font name, font style and font size separately using YAD font selector?
Code: Select all
yad --font
Schadow BlkCn BT Bold Italic 10
Cordialement.
Code: Select all
yad --font
Schadow BlkCn BT Bold Italic 10
Code: Select all
#! /bin/bash
yad --font | while read line; do
STL=`echo $line | grep -o "Bold\|Italic\|Oblique\|Condensed\|Medium"` #Might need to add more styles
STYLE=`echo $STL`
SIZE=`echo $line | awk '{print $NF}'`
if [ "$STYLE" = "" ]; then
NAME=`echo $line | awk -F"$SIZE" '{print $1}'`
else
NAME=`echo $line | awk -F"$STYLE" '{print $1}'`
fi
echo $NAME
echo $STYLE
echo $SIZE
done
... regardless the font name or style complexity...Schadow BlkCn BT|Bold Italic|10
https://groups.google.com/forum/#!topic ... oJXv-9HQAgVictor Ananjevsky wrote:no, this is impossible right now.
but i think this may be usefull, so i'll add such output in next release
On Tue, 16 Feb 2016 01:21:19 -0800 (PST)
A. wrote:
> Bonjour,
> Is it possible to get the output font name, font style and font size *separately
> *using YAD font selector?
> Something like:
> Schadow BlkCn BT|Bold Italic|10
> Thanks in advance.
Code: Select all
# yad --version
0.33.1 (GTK+ 2.24.10)
# yad --font --separate-output
PizzaDude Bullets|Bold Italic|10
# yad --font --separate-output
Bitstream Vera Sans Mono|Bold Oblique|73
# yad --font --separate-output
Nimbus Roman No9 L|Regular Italic|10