~mil/sxmo-tickets#194: 
Xcalc Xresources not used

sxmo-utils/scripts/core/sxmo_xinit.sh contains a minor error in the xdefaults() section

The xrdb command for xresources_dmenu replaces the xresources_xcalc values loaded on the line preior to it.

Changing to 'xrdb -merge /usr/share/sxmo/appcfg/xresources_dmenu.xr' restores the intended behaviour.

Also sxmo-utils//configs/appcfg/xresources_xcalc.xr contains a typo on line 48, a missing '' in 'xcalcti'

Applying these changes gives a nice colourful Xcalc.

There are three issues with the terminus font: the 'square root' sign is not shown, Pi is rendered as 'P' and the 'divide' button is rendered as a comma. Apparently Xcalc uses the 'Adobe Symbol' font which has the correct symbols.

Pending finding out how to install Adobe Symbol on PMOS, I added:

xcalc*ti.button3.label: Sqrt

xcalc*ti.button21.label: Pi

xcalc*ti.button35.label: /

A font size of terminus 48 seems about right with the dpi modified to 192 as in Ticket 193.

Status
RESOLVED FIXED
Submitter
Chris Billington
Assigned to
No-one
Submitted
4 months ago
Updated
3 months ago
Labels
bug ready

~emulti 4 months ago

To make the symbols for square root, pi and division appear correctly in xcalc, install the font-adobe-100dpi package, and append the following lines to xresources _xcalc.xr:

xcalc*ti.button3.font: -adobe-symbol-*-*-*-*-*-240-100-100-*-*-*-*
xcalc*ti.button21.font: -adobe-symbol-*-*-*-*-*-240-100-100-*-*-*-*
xcalc*ti.button35.font: -adobe-symbol-*-*-*-*-*-240-100-100-*-*-*-*

and remove or comment with '!' the xcalc*ti.button??.label lines above

Font size was set in the previous line to xcalcfont: --terminus-----48-------*

Logout/login is needed to load the modified Xresources. on the previous line. This gives OK font sizes for me with Xorg dpi set to 192 as in Ticket #193

~proycon 4 months ago

This is now addressed by ~tetrakist in https://lists.sr.ht/~mil/sxmo-devel/patches/20772 and should be fixed in next release

~proycon REPORTED FIXED 3 months ago

Register here or Log in to comment, or comment via email.