Menu

#280 0.36.3 Need To Now Add - --fontname=

New
nobody
None
High
Defect
2016-08-11
2016-06-06
SourceBugs
No

0.27.0 was the last version I've used. Today I compiled from source 0.36.3 and noticed for the openvpn script I have below, that if I do not add in this font line; --fontname= then my system font is not being used.

Before with 0.27.0 it would just show the system font I have assigned in LXAppearance. Has something changed in the latest versions of Yad, that in order to get a font you want to appear, you need to now add this line? --fontname=

You'll see below I have it showing; --fontname=Aller in order to get the Aller font to appear, that is assigned in LXAppearance.

My Specs
Slackware 14.1 x86_64
Openbox 3.6.1
LXAppearance 0.6.2

function confirm_close () {
yad --title="OpenVPN Shutdown" --window-icon="/home/foo/.icons/AwOken/clear/128x128/apps/openvpn.png" \
--center --width="360" --height="100" --image="dialog-question" \
--text="Click 'OK' To Shutdown OpenVPN\nClick 'Cancel' to Keep OpenVPN Running"
[[ $? -eq 0 ]] && kill -USR1 $YAD_PID
}
export -f confirm_close

sudo -b openvpn --config /etc/openvpn/openvpn.conf \
--up /home/foo/.config/openbox/vpn_up --down /home/foo/.config/openbox/vpn_dn | \
yad --fontname=Aller --text-info --wrap --fore="#ababab" --back="#a4390a" --button="Close:bash -c confirm_close" \
--center --width="700" --height="450" --title="OpenVPN" \
--window-icon="/home/foo/.icons/AwOken/clear/128x128/apps/openvpn.png"

[[ $? -eq 0 ]] && sudo killall openvpn 2>/dev/null

Discussion

  • SourceBugs

    SourceBugs - 2016-07-20

    Has anyone had a chance to see this?

    thank you

     
  • Victor Ananjevsky

    starting from 0.36.0 the default font for text-info dialog is Monospace. this is hardcoded. sorry for inconvinience

     

    Last edit: Victor Ananjevsky 2016-08-06
  • SourceBugs

    SourceBugs - 2016-08-11

    So what I did by adding --fontname= is correct?

    thank you

     

Log in to post a comment.