The font name used by fcitx5's conf file.

234 views
Skip to first unread message

Hongyi Zhao

unread,
Dec 9, 2020, 8:53:15 AM12/9/20
to fcitx
I want to set  the customized font via ~/.config/fcitx5/conf/classicui.conf and I've following fonts on my Ubuntu 20.04 box:

werner@X10DAi:~$ fc-list -b|grep -i 'family:' | grep '.*DejaVuSansMono Nerd Font Mono' | sort -u
    family: "DejaVuSansMono Nerd Font Mono"(s)
werner@X10DAi:~$ fc-list -b|grep -i 'fullname:' | grep '.*DejaVuSansMono' | sort -u
    fullname: "DejaVuSansMono YaHei Nerd Font Bold"(s)
    fullname: "DejaVuSansMono YaHei Nerd Font Oblique"(s)
    fullname: "DejaVuSansMono YaHei NF"(s)

I want to know which name, fullname or family name, I should use in fcitx5's conf file, i.e., classicui.conf in order to let fcitx5 pickup the corresponding font.

Weng Xuetian

unread,
Dec 14, 2020, 5:43:13 PM12/14/20
to fcitx
Just use the configuration UI to change font. git fcitx5-configtool
should be able to be compiled on ubuntu 20.04.
> --
> You received this message because you are subscribed to the Google Groups "fcitx" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to fcitx+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/fcitx/2d688a8a-1431-418e-8f64-1b4290d2ef8dn%40googlegroups.com.

Hongyi Zhao

unread,
Dec 14, 2020, 6:07:08 PM12/14/20
to fc...@googlegroups.com
On Tue, Dec 15, 2020 at 6:43 AM Weng Xuetian <wen...@gmail.com> wrote:
>
> Just use the configuration UI to change font. git fcitx5-configtool
> should be able to be compiled on ubuntu 20.04.

The latest git version fails to be compiled:

$ git log -1
commit 93412f96fc76f70a1ca986d1483c401326f4e16b (HEAD -> master,
origin/master, origin/HEAD)
Author: Weng Xuetian <wen...@gmail.com>
Date: Mon Dec 14 12:27:20 2020 -0800

Explicitly disable in source build.


$ cmake -DENABLE_KCM=Off ..
CMake Error at CMakeLists.txt:24 (find_package):
By not providing "FindKF5ItemViews.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"KF5ItemViews", but CMake did not find one.

Could not find a package configuration file provided by "KF5ItemViews" with
any of the following names:

KF5ItemViewsConfig.cmake
kf5itemviews-config.cmake

Add the installation prefix of "KF5ItemViews" to CMAKE_PREFIX_PATH or set
"KF5ItemViews_DIR" to a directory containing one of the above files. If
"KF5ItemViews" provides a separate development package or SDK, be sure it
has been installed.


-- Configuring incomplete, errors occurred!
See also "/home/werner/Public/repo/github.com/fcitx/fcitx5-configtool.git/build/CMakeFiles/CMakeOutput.log".
> To view this discussion on the web visit https://groups.google.com/d/msgid/fcitx/CAKiDycHcCfBZG4OEzZ-cYmCG0_Hh50_YtOnebSSDgDOC3XuBRg%40mail.gmail.com.



--
Assoc. Prof. Hongyi Zhao <hongy...@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic Vocational and Technical University
NO. 552 North Gangtie Road, Xingtai, China

Weng Xuetian

unread,
Dec 14, 2020, 6:23:19 PM12/14/20
to fcitx
obviously you're missing dependencies.

You may use apt-file to find the file.
Also, pkgs.org is a good website that is very easy to use find
packages on different distributions:
e.g. https://pkgs.org/search/?q=KF5ItemViewsConfig.cmake shows you
that the package you're missing is libkf5itemviews-dev on ubuntu.
> To view this discussion on the web visit https://groups.google.com/d/msgid/fcitx/CAGP6POJ6w7nKofz00d-1chvhRbLyND4rrnppjFDvVgNBaox3jg%40mail.gmail.com.

Hongyi Zhao

unread,
Dec 14, 2020, 7:01:13 PM12/14/20
to fc...@googlegroups.com
On Tue, Dec 15, 2020 at 7:23 AM Weng Xuetian <wen...@gmail.com> wrote:
>
> obviously you're missing dependencies.
>
> You may use apt-file to find the file.

Thanks and regards. It does the trick.

$ apt-file search KF5ItemViewsConfig.cmake
libkf5itemviews-dev:
/usr/lib/x86_64-linux-gnu/cmake/KF5ItemViews/KF5ItemViewsConfig.cmake


> Also, pkgs.org is a good website that is very easy to use find
> packages on different distributions:
> e.g. https://pkgs.org/search/?q=KF5ItemViewsConfig.cmake shows you
> that the package you're missing is libkf5itemviews-dev on ubuntu.

Thanks again for pointing this out.

Really, it does the trick. So to say, even I've used the
-DENABLE_KCM=Off cmake configure option, this package is still based
on some specific KDE dependent files.

The following command can also install the needed dependencies:

$ sudo apt-get build-dep kde-config-fcitx5

So currently, the name of this package is rather confusing.
> You received this message because you are subscribed to a topic in the Google Groups "fcitx" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/fcitx/ij6_2wdU2Xw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to fcitx+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/fcitx/CAKiDycEc4FDSxMu%2BM3kCGtS-72dooFV%3Db4Pby33%2BU4pxVbWErw%40mail.gmail.com.

Hongyi Zhao

unread,
Dec 14, 2020, 7:28:50 PM12/14/20
to fc...@googlegroups.com
Let's go back to the original question. I still can't find the font
selection panel with this tool as shown in the attachment.
Screenshot from 2020-12-15 08-22-08.png

Weng Xuetian

unread,
Dec 14, 2020, 7:55:46 PM12/14/20
to fcitx
It's in the config of classic ui.
> To view this discussion on the web visit https://groups.google.com/d/msgid/fcitx/CAGP6POKPCumCC8eYOj3iBEp3nrYR-quSBnCgnkR5nOHejbgF1w%40mail.gmail.com.

Hongyi Zhao

unread,
Dec 14, 2020, 8:37:21 PM12/14/20
to fc...@googlegroups.com
On Tue, Dec 15, 2020 at 8:55 AM Weng Xuetian <wen...@gmail.com> wrote:
>
> It's in the config of classic ui.

Strange. See the discussion located at
<https://github.com/hosxy/Fcitx5-Material-Color/issues/20#issuecomment-743767028>,
where the font change was done through GUI.
> To view this discussion on the web visit https://groups.google.com/d/msgid/fcitx/CAKiDycGn%2BUe28pzbHSRnn6200%3DNwWscj7YSTu-JU-0b_tZqt9Q%40mail.gmail.com.

Hongyi Zhao

unread,
Dec 15, 2020, 6:52:57 AM12/15/20
to fc...@googlegroups.com
On Tue, Dec 15, 2020 at 9:37 AM Hongyi Zhao <hongy...@gmail.com> wrote:
>
> On Tue, Dec 15, 2020 at 8:55 AM Weng Xuetian <wen...@gmail.com> wrote:
> >
> > It's in the config of classic ui.
>
> Strange. See the discussion located at
> <https://github.com/hosxy/Fcitx5-Material-Color/issues/20#issuecomment-743767028>,
> where the font change was done through GUI.

I finally found the corresponding settings' menu on the GUI located on
the Addons panel. Please refer to the attached documents for others'
reference.
Screenshot from 2020-12-15 19-38-47.png
Reply all
Reply to author
Forward
0 new messages