diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2022-01-08 00:02:30 +0100 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2022-01-08 12:58:14 +0100 |
commit | dabeab27dae5d3aef2bf41c186a6fc308d617466 (patch) | |
tree | d70520d07063f0cdee3395b1f2df1012c55294c6 /Repository.mk | |
parent | ed1aa172f8807ee479e4f529df49d19c13a8bc86 (diff) |
vcl: Create listfonts utility
The listfonts utility gets the details of all available fonts on the
system. It prints out the information, or stores it in a text file,
if a file name is passed to it as an argument.
An example invocation to store the information in a file named
fonts.txt is:
./bin/run listfonts fonts.txt
To get the correct font metrics, you actually have to get the font
metric from the system, and then set it as the current font of
OutputDevice, then get the font metric (which corrects a variety of
things like the orientation, line, height, slant, etc. - including
converting from logical coords to device coords).
The information is reported for each font family. On the top is the
family name, and then comes other details. Here is a report for an
example font:
FreeSans
Family type: swiss
Style name: Regular
Weight: normal
Italic: none
Pitch: variable
Width type: normal
Alignment: top
Charset: UCS2 (aka Unicode)
Symbol font? no
Ascent: 13
Descent: 3
Internal leading: 0
External leading: 2
Line height: 16
Slant: 0
Bullet offset: 0
Fullstop centered? yes
Orientation: 0 degrees
Quality: 18477
There is a -v (or --verbose) option that output font features.
Change-Id: Icfc4da96459bea47c4233a5509496566c04d460c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127365
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'Repository.mk')
-rw-r--r-- | Repository.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Repository.mk b/Repository.mk index 6e3834a24259..c6210625338a 100644 --- a/Repository.mk +++ b/Repository.mk @@ -74,8 +74,9 @@ $(eval $(call gb_Helper_register_executables,NONE, \ $(if $(filter LINUX MACOSX SOLARIS WNT %BSD,$(OS)),icontest) \ vcldemo \ tiledrendering \ - mtfdemo \ - visualbackendtest \ + mtfdemo \ + visualbackendtest \ + listfonts \ $(if $(and $(ENABLE_GTK3), $(filter LINUX %BSD SOLARIS,$(OS))), gtktiledviewer) \ )) |