Hi,
I want to display a weather symbol with conky but it just shows something like "´" or similar. I have installed the Climacons.ttf into ~/.fonts and updated the font cache with "sudo fc-cache -fv". In my conkyrc file I have:
use_xft yes
xftalpha 0
xftfont Sans:size=9
override_utf8_locale yes
imlib_cache_size 0
${font Climacons:size=90,weight:normal} ...
When I open the font in ~/.fonts it shows correct symbols, but when I open "fonts" from the menu and browse to the font, it doesnt show the correct symbols. I have no idea what else I can do. I've also installed libxft2.
Conky and fonts
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Conky and fonts
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Conky and fonts
Erm, Climacons are icons not symbols
is what you're are after?
Code: Select all
°
Re: Conky and fonts
Hi,
thanks for your reply
thanks for your reply
Code: Select all
System: Host: SwoncenMint Kernel: 3.16.0-38-generic i686 (32 bit, gcc: 4.8.2)
Desktop: Cinnamon 2.6.13 Distro: Linux Mint 17.2 Rafaela
Machine: System: LENOVO product: 20C60045GE version: ThinkPad Edge E540 serial:
Mobo: LENOVO model: 20C60045GE version: 0B98405 STD serial:
Bios: LENOVO version: J9ET93WW (2.13 ) date: 08/29/2014
CPU: Dual core Intel Core i5-4200M CPU (-HT-MCP-) cache: 3072 KB flags: (lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9977.18
Clock Speeds: 1: 2500.097 MHz 2: 2487.792 MHz 3: 1659.375 MHz 4: 2502.832 MHz
Graphics: Card: Intel 4th Gen Core Processor Integrated Graphics Controller bus-ID: 00:02.0
X.org: 1.15.1 driver: nvidia tty size: 156x45 Advanced Data: N/A for root
Audio: Card-1: Intel 8 Series/C220 Series High Definition Audio Controller driver: snd_hda_intel bus-ID: 00:1b.0
Card-2: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller driver: snd_hda_intel bus-ID: 00:03.0
Sound: Advanced Linux Sound Architecture ver: k3.16.0-38-generic
Network: Card-1: Intel Wireless 7260 driver: iwlwifi ver: in-tree: bus-ID: 05:00.0
IF: wlan0 state: up mac: 0c:8b:fd:b4:cd:c8
Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
driver: r8169 ver: 2.3LK-NAPI port: 3000 bus-ID: 04:00.0
IF: eth0 state: down mac: 28:d2:44:57:20:48
Drives: HDD Total Size: 1000.2GB (78.5% used) 1: id: /dev/sda model: WDC_WD10JPVX size: 1000.2GB temp: 27C
Partition: ID: / size: 28G used: 6.7G (26%) fs: ext4 ID: /home size: 875G used: 725G (88%) fs: ext4
ID: swap-1 size: 16.40GB used: 0.00GB (0%) fs: swap
RAID: No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors: System Temperatures: cpu: 44.0C mobo: N/A gpu: 0.0:40C
Fan Speeds (in rpm): cpu: 0
Info: Processes: 193 Uptime: 3 min Memory: 569.3/7815.6MB Runlevel: 2 Gcc sys: 4.8.4 Client: Shell (sudo) inxi: 1.9.17
Re: Conky and fonts
FWIW, I did your same font install and...
- In GIMP the font name is "Climacons-Font" and it (apparently) shows the proper symbols.
- I can't get it to work either; using the name seen in gimp made no difference:
${font Climacons-Font:size=20} Hello
Changing
use_xft yes --> no
just broke all the font stuff.
This guy made it work, haven't read it much:
http://walkero.gr/post/50586862655/my-l ... nky-script
Edit: I put the Climacons file into the same /usr/share/fonts/truetype/bobco directory as some other symbol fonts (then sudo fc-cache -fv); the other symbol fonts worked fine in conky, but not climacons:
shows symbols for the text; Climacons(-font and variations on the capital letters) still shows regular text...weird.
- In GIMP the font name is "Climacons-Font" and it (apparently) shows the proper symbols.
- I can't get it to work either; using the name seen in gimp made no difference:
${font Climacons-Font:size=20} Hello
Changing
use_xft yes --> no
just broke all the font stuff.
This guy made it work, haven't read it much:
http://walkero.gr/post/50586862655/my-l ... nky-script
Edit: I put the Climacons file into the same /usr/share/fonts/truetype/bobco directory as some other symbol fonts (then sudo fc-cache -fv); the other symbol fonts worked fine in conky, but not climacons:
Code: Select all
${font Bobco 7:pixelsize=25} ABCDEFG
${font Bobco 8:20} Hello
Climacons-font'`
Climacons
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Your data and OS are backed up....right?
Re: Conky and fonts
Hi Flemur,
I took the code from exactly this guy from which you have posted the link, but it didn't work for me. I also thought that the font may be corrupt, but I don't really want the Climacons font only - I would take other weather fonts as well, but I'm not sure, if the mapping from the weather sites to the font icons is always the same. I will look for other fonts and try them out now. I would really like to know what the problem here is, just out of curiosity.
I took the code from exactly this guy from which you have posted the link, but it didn't work for me. I also thought that the font may be corrupt, but I don't really want the Climacons font only - I would take other weather fonts as well, but I'm not sure, if the mapping from the weather sites to the font icons is always the same. I will look for other fonts and try them out now. I would really like to know what the problem here is, just out of curiosity.
Re: Conky and fonts
I've tried to put the font also in /usr/share/fonts/truetype as you described but I got the same results. Also other fonts won't display correctly. It's strange, that no one has an answer to that problem. I've looked quickly into the code and it seems, that the fonts are beeing converted in order to be shown as icons on the screen. I think I'll give up and just add a deskjet to show me the weather. It's frustrating..