How do we change the default font on Linux system?
I have two hosts i.e host1 & host2.
host1 has the desired font details of which are below:
Code:
uname -a
Linux host1 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ fc-match
StRydeRegular.ttf: "St Ryde" "Regular"
I need the same default font on host2 however I'm not sure what and where changes need to be done.
Below are the details of host2
Code:
# uname -a
Linux host2 3.10.0-957.5.1.el7.x86_64 #1 SMP Fri Feb 1 14:54:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@vultr /]# fc-match
DejaVuSans.ttf: "DejaVu Sans" "Book"
Can you please suggest any quick and easy fix to default the font on host2 to be StRydeRegular.ttf: "St Ryde" "Regular ?
As a solution i tried to copy /etc/fonts/fonts.conf from host1 to host2 and reload but it gives syntax error like below:
Code:
# sudo fc-cache -fv
[root@vultr /]# fc-match
Fontconfig warning: "/etc/fonts/fonts.conf", line 71: unknown element "blank"
Fontconfig error: "/etc/fonts/fonts.conf", line 141: no element found
Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf
DejaVuSans.ttf: "DejaVu Sans" "Book"
Hi Gurus,
I have a small requirement where i want to change the color & font of some text in a file.
i have a file error.txt which will be created in the script using egrep.
After that iam adding these lines at head & tail to that file using the following code
awk 'BEGIN{print"Please... (4 Replies)
I am writing sql reports to an oracle database, spooling them to a file and emailing them with mailx. I use the syntax below. The reports do not format properly, unless I use the Courier New font. How do I set this with mailx?
mailx -s "MY REPORT, `date +'%D %r` " -r "REPORTING SYSTEM"... (2 Replies)
Hello All,
Wasn't sure if this was the correct thread to post this under but figured it has to do with Perl and Gtk2 so why not...
Anyway.. How can I find out what the Default font being used is inside a Gtk2::Widget. In this case I'm trying to figure out the
font being used inside a... (1 Reply)
Hello,
I have a problem with Greek subtitle font size when I map a subtitle file into a video in ffmpeg.
I ran below code:
ffmpeg -i video.mp4 -sub_charenc CP1253 -i video_sub.srt -c:v copy -c:a copy \
-c:s mov_text -metadata:s:s:0 language=gr mapped_video.mp4
When I play it in VLC,... (2 Replies)
Hi All,
I have a file that contains following entries.
I want to highlight the line that has word as "FAILURE" while sending the email.
File
------------------------------------------------------------
Job Name: ABC
Start Time: 07/20/2019 07:32:39
End Time: 07/20/2019... (4 Replies)
Discussion started by: sdosanjh
4 Replies
LEARN ABOUT HPUX
xmfontlistentrycreate
XmFontListEntryCreate(library call) XmFontListEntryCreate(library call)
NAME
XmFontListEntryCreate -- A font list function that creates a font list entry
SYNOPSIS
#include <Xm/Xm.h>
XmFontListEntry XmFontListEntryCreate(
char *tag,
XmFontType type,
XtPointer font);
DESCRIPTION
XmFontListEntryCreate creates a font list entry that contains either a font or font set and is identified by a tag.
tag Specifies a NULL terminated string for the tag of the font list entry. The tag may be specified as XmFONTLIST_DEFAULT_TAG, which
is used to identify the default font list element in a font list.
type Specifies whether the font argument is a font structure or a font set. Valid values are XmFONT_IS_FONT and XmFONT_IS_FONTSET.
font Specifies either an XFontSet returned by XCreateFontSet or a pointer to an XFontStruct returned by XLoadQueryFont.
The toolkit does not copy the X Font structure specified by the font argument. Therefore, an application programmer must not free
XFontStruct or XFontSet until all font lists and/or font entries that reference it have been freed.
RETURN
Returns a font list entry. The function allocates space to hold the returned font list entry. The application is responsible for managing
the allocated space. The application can recover the allocated space by calling XmFontListEntryFree.
RELATED XmFontList(3), XmFontListAppendEntry(3), XmFontListEntryFree(3), XmFontListEntryGetFont(3), XmFontListEntryGetTag(3), XmFontListEntry-
Load(3), and XmFontListRemoveEntry(3).
XmFontListEntryCreate(library call)