LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to Optimize Fonts in Slackware (https://www.linuxquestions.org/questions/slackware-14/how-to-optimize-fonts-in-slackware-640468/)

dugan 08-23-2019 12:54 AM

Heads up that Apple's San Franciso fonts are free.

https://developer.apple.com/fonts/

As for extracting them... it's three commands. "7z x" on the dmg file, "7z x" on the pkg file inside, "cpio -i" on the "Payload~" file inside the pkg file.

GazL 08-23-2019 02:29 AM

What sort of licence are they under? I couldn't see any mention on that page.

Daedra 08-24-2019 04:19 PM

Quote:

Originally Posted by dugan (Post 6028475)
Heads up that Apple's San Franciso fonts are free.

https://developer.apple.com/fonts/

As for extracting them... it's three commands. "7z x" on the dmg file, "7z x" on the pkg file inside, "cpio -i" on the "Payload~" file inside the pkg file.

I'm interested in giving these fonts a look, but when I run "cpio -i" on the Payload~ file, it seems to just stall on not extract the file. Am I missing something?

ehartman 08-24-2019 05:06 PM

Quote:

Originally Posted by Daedra (Post 6029089)
I'm interested in giving these fonts a look, but when I run "cpio -i" on the Payload~ file, it seems to just stall on not extract the file. Am I missing something?

cpio doesn't use filenames, you have to REdirect the file into the cpio commandline, like
Code:

cpio -i"other options"  < Payload_archive
See "man cpio" too for all the options (especially --make-directories or --preserve-modification-time.
cpio does need some getting used too, I admit, it really was meant to be used in a pipe.
For instance: from my "backup restore" script (which is using cpio archives)
Code:

$RCMD dd if=/dev/$DEVICE ibs=$BLKSIZE | cpio -iv$OPT "$@"
(in which the "dd" can run on a different computer then the cpio, that's why the $RCMD in front of it). The $OPT can include options like--unconditional to overwrite already existing files.

dugan 08-27-2019 10:37 PM

Just learned about the Go fonts...

https://blog.golang.org/go-fonts

anthk 08-28-2019 08:56 AM

My ~/.Xdefaults:

Code:

XTerm*FaceName:Unifont:size=17:antialias=true
XTerm*loginShell: true

I installed gnu-unifont from SBO's. It has one of the
best UTF8 coverage in XTerm's.

For the rest, I use the IBM Plex family for sans, serif
and monospaced fonts. The SBo name is "ttf-ibm-plex".

dugan 08-29-2019 01:38 PM

I decided to go with Hack for my terminal font. For the entirely technical reason that it includes Powerline glyphs, and doesn't need to be "patched" to add them.

igor_ubuntu 11-30-2019 02:50 AM

About Infinality Fonts for Slackware

To date, we have:

Eric Fernandes Ferreira aka Candelabrus
https://github.com/ericfernandesferr...finality-fonts
Quote:

This my version of Infinality is based on the version of nihilismus
https://github.com/nihilismus/bob-infinality-bundle )

Requirements:
- slackware64 14.2

Contents:
- beautifulsoup
- cssselect
- lxml
- freetype
- fontconfig
- cairo

Freetype 2.6.3
Cairo 1.14.6
Fontconfig 2.11.1

==================================================

https://github.com/archfan/bob-infinality-bundle
Quote:

Infinality Bundle for Slackware 14.2

These are SlackBuilds & patches to rebuild some official packages in Slackware Linux,
are in test so be careful with the result in your system.

Freetype 2.6.5
Cairo 1.14.6
Fontconfig 2.11.95
=====================================================

https://github.com/rfmae/bob-infinality-bundle
Quote:

At this moment these SlackBuilds are from and for slackware64-14.2, but they also work with slackware-14.2.
I tried to make the minimal modificactions to the originals Slackbuilds.
There is not need to select a type of font rendering (Windows, Apple or Ubuntu)
since the "aim of infinality-bundle is to make use of the vast potential hidden in native Linux font rendering back-end".

Freetype 2.6.5
Cairo 1.14.6
Fontconfig 2.11.1
=======================================================

https://github.com/rrudakov/slackware-infinality
Quote:

Based on archfan infinality patches. https://github.com/archfan/infinality_bundle
Master branch contains sources and precompilled packages for slackware64-current.
If you use slackware-14.2 checkout slackware-14.2 branch.

Versions for slackware64-current:

Freetype 2.8
FontConfig 2.12.4
Cairo 1.14.10
=============================

https://gitlab.com/grinder/infinality-fonts

Quote:

Eric Fernandes Ferreira aka Candelabrus
Infinality Fonts for Slackware Current

Freetype 2.10
FontConfig 2.13.1
Cairo 1.16.0
=================================

Quote:

https://github.com/pdeljanov/infinality-remix
Arch Linux PKGBUILDs for Infinality patched FreeType, Fontconfig, and Cairo packages =>

=> https://www.linuxquestions.org/quest...ml#post5979871

This is for -current.
The Slackbuild from Daedra:

https://www.dropbox.com/s/ow52bkkxx3...15.tar.gz?dl=0
Install lxml from SBo first, then run ./install.sh

Freetype 2.10
FontConfig 2.13.1
Cairo 1.16.0

igor_ubuntu 12-01-2019 04:49 AM

Quote:

Originally Posted by igor_ubuntu (Post 6063280)
About Infinality Fonts for Slackware

https://github.com/archfan/bob-infinality-bundle
Quote:
Infinality Bundle for Slackware 14.2

These are SlackBuilds & patches to rebuild some official packages in Slackware Linux,
are in test so be careful with the result in your system.

Freetype 2.6.5
Cairo 1.14.6
Fontconfig 2.11.95

AFAIU
This build does not enable SUBPIXEL_HINTING.

<archfan-bob-infinality-bundle-master>/source/l/freetype/infinality-bundle/

has 03-infinality-2.6.3-2016.04.16.patch

This patch has
Code:

diff --git .......
...
...
diff --git a/devel/ftoption.h b/devel/ftoption.h
--- a/devel/ftoption.h    2016-03-28 12:09:54.392246487 +0200
+++ b/devel/ftoption.h    2016-03-28 12:17:20.364039723 +0200
@@ -604,6 +604,16 @@ FT_BEGIN_HEADER
  /*                                                                      */
 #define TT_CONFIG_OPTION_SUBPIXEL_HINTING
 
+  /*************************************************************************/
+  /*                                                                      */
+  /* Define FT_CONFIG_OPTION_INFINALITY_PATCHSET if you want to enable    */
+  /* all additional infinality patches, which are configured via env      */
+  /* variables.                                                            */
+  /*                                                                      */
+  /*  This option requires TT_CONFIG_OPTION_SUBPIXEL_HINTING to          */
+  /*  defined.                                                            */
+  /*                                                                      */
+#define FT_CONFIG_OPTION_INFINALITY_PATCHSET
 
  /*************************************************************************/
  /*                                                                      */

But
the resulting files /tmp/bob-infinality-bundle/freetype-2.6.5/include/config/ftoption.h (after compilation)
(and 'ftoption.h' of freetype-2.6.5-x86_64-1.txz (after compilation))
do not have
+#define TT_CONFIG_OPTION_SUBPIXEL_HINTING
+#define FT_CONFIG_OPTION_INFINALITY_PATCHSET


These lines can be found only in /usr/include/config/ftoption.h.rej
AFAIU there is a conflict here.

So, if I want to get TT_CONFIG_OPTION_SUBPIXEL_HINTING,
I have to further set the file 'ftoption.h' manually in sources.

i.e. to undefine a line here

/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 1 */
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 */
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) */

Right ?
But how about +#define FT_CONFIG_OPTION_INFINALITY_PATCHSET ?
How to get ones ?

igor_ubuntu 01-06-2020 05:28 AM

Quote:

About Infinality Fonts for Slackware
https://github.com/archfan/bob-infinality-bundle
I have applied that in 14.2 and got a excellent result.
But a compile log shows me

Code:

...
patching file include/freetype/freetype.h
Using Plan A...
Hunk #1 succeeded at 20 with fuzz 1.
done

Applying: /home/slx/ft/archfan-bob-infinality-bundle-master265/source/l/freetype/infinality-bundle/01-freetype-2.6.3-enable-valid.patch ...

patching file modules.cfg

Applying: /home/slx/ft/archfan-bob-infinality-bundle-master265/source/l/freetype/infinality-bundle/03-infinality-2.6.3-2016.04.16.patch ...
patching file builds/freetype.mk
patching file configure
patching file devel/ftoption.h
Hunk #1 succeeded at 582 with fuzz 2 (offset -22 lines).
patching file include/freetype/config/ftoption.h
Hunk #2 FAILED at 602.
1 out of 2 hunks FAILED -- saving rejects to file include/freetype/config/ftoption.h.rej
patching file src/autofit/aflatin.c

ftoption.h.rej has

Code:

--- include/freetype/config/ftoption.h
+++ include/freetype/config/ftoption.h
@@ -92,7 +92,7 @@ FT_BEGIN_HEADER
  /* This is done to allow FreeType clients to run unmodified, forcing    */
  /* them to display normal gray-level anti-aliased glyphs.                */
  /*                                                                      */
-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
 
 
  /*************************************************************************/
@@ -602,7 +602,19 @@ FT_BEGIN_HEADER
  /*  This option requires TT_CONFIG_OPTION_BYTECODE_INTERPRETER to be    */
  /*  defined.                                                            */
  /*                                                                      */
-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */
+#define TT_CONFIG_OPTION_SUBPIXEL_HINTING
+
+
+  /*************************************************************************/
+  /*                                                                      */
+  /* Define FT_CONFIG_OPTION_INFINALITY_PATCHSET if you want to enable    */
+  /* all additional infinality patches, which are configured via env      */
+  /* variables.                                                            */
+  /*                                                                      */
+  /*  This option requires TT_CONFIG_OPTION_SUBPIXEL_HINTING to          */
+  /*  defined.                                                            */
+  /*                                                                      */
+#define FT_CONFIG_OPTION_INFINALITY_PATCHSET
 
 
  /*************************************************************************/

How to fix that ?
AFAIU There is a incompatibility problem between archfan/bob-infinality-bundle_03-infinality-2.6.3-2016.04.16.patch and 14.2 (archfan uses Freetype 2.6.5) ?
What should I do ?


All times are GMT -5. The time now is 07:31 AM.