-
yad > le sélecteur de polices
yad --font
sortie renvoyée :
Sans 10Si le Bold (Gras) est sélectionné : sortie >
Sans Bold 10PRÉVISUALISATION
yad --font --preview="voici mon texte de prévisualisation"
Pour passer les trois (Family, Style, Size) séparément :
#!/bin/sh 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 $STYLE $SIZE done