LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-09-2017, 09:01 PM   #511
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656

Quote:
Originally Posted by gegechris99 View Post
I used this command instead (it can be improved but it worked):

Code:
sed -i 's/\/\* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING[[:space:]]\+\*\//#define TT_CONFIG_OPTION_SUBPIXEL_HINTING/g' include/freetype/config/ftoption.h
This might be able to be improved even more, but this is a bit shorter (and possibly a bit easier to read since there's only two escape characters for the asterisks).

Code:
sed -i 's|^/\* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING \*/|#define TT_CONFIG_OPTION_SUBPIXEL_HINTING|' include/freetype/config/ftoption.h
(Sorry, I like figuring out sed commands to keep my knowledge up.)
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-10-2017, 12:10 AM   #512
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,149
Blog Entries: 5

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
Taking inspiration from dugan's own sed command, the subpixel hinting patch for 14.2 (freetype 2.6.3) could be even shorter
Code:
sed -i 's|^/\* \(#define TT_CONFIG_OPTION_SUBPIXEL_HINTING\) \*/|\1|' include/freetype/config/ftoption.h
 
1 members found this post helpful.
Old 08-10-2017, 01:47 PM   #513
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by gegechris99 View Post
Taking inspiration from dugan's own sed command, the subpixel hinting patch for 14.2 (freetype 2.6.3) could be even shorter
Code:
sed -i 's|^/\* \(#define TT_CONFIG_OPTION_SUBPIXEL_HINTING\) \*/|\1|' include/freetype/config/ftoption.h
I was curious how this worked, so I did some looking into sed commands. For any others who might be curious, basically you have the string you're searching for:

Code:
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */
When you search for it using sed, you need to escape the asterisks with a backslash, so it now becomes this:

Code:
/\* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING \*/
Now, since we want a certain portion of it, we can mark it using opening and closing parenthesis. You can do this multiple times to mark multiple blocks of text.

Code:
/\* (#define TT_CONFIG_OPTION_SUBPIXEL_HINTING) \*/
Now, we can use \1 in the replacement section to pull up the pattern. If you did multiple patterns, you can use \2, \3, etc up to 9 different patterns (which would correspond to 9 different sections with opening and closing parenthesis. We're using the pipe symbol | as the delimiter so we don't have to escape the forward slash in the searched text.

Code:
|/\* (#define TT_CONFIG_OPTION_SUBPIXEL_HINTING) \*/|\1|
When we put it all together, we get the following command. Dugan's/gegechris99's commands both had a carat ^ at the front to signify it's the beginning of the line, but based on the text I've seen, it shouldn't be needed because no other lines should match the command (but it doesn't hurt to add it).

Code:
sed -i 's|/\* (#define TT_CONFIG_OPTION_SUBPIXEL_HINTING) \*/|\1|' include/freetype/config/ftoption.h

Last edited by bassmadrigal; 08-11-2017 at 02:25 AM. Reason: Butchered my own post...
 
3 members found this post helpful.
Old 08-11-2017, 02:18 AM   #514
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,149
Blog Entries: 5

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
@bassmadrigal

Thanks for detailed info on this particular sed syntax.

Note: you just forgot to put the parenthesis in the last sed command
Please edit your post and correct it as this is supposed to be the command to apply the subpixel hinting patch in 14.2.

Last edited by gegechris99; 08-11-2017 at 02:20 AM. Reason: Add reason for correcting sed command
 
1 members found this post helpful.
Old 08-11-2017, 02:26 AM   #515
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by gegechris99 View Post
Note: you just forgot to put the parenthesis in the last sed command
Please edit your post and correct it as this is supposed to be the command to apply the subpixel hinting patch in 14.2.
Thanks for that. That's what I get for typing it up at work without having a bash shell nearby to test it...
 
Old 12-27-2017, 04:09 PM   #516
eindemwort
Member
 
Registered: Dec 2017
Location: Regensburg, DE
Distribution: Slackware -current
Posts: 35

Rep: Reputation: Disabled
infinality Slackware 14.2 / -current

Quote:
Originally Posted by aaditya View Post
You could also customize /etc/profile.d/infinality-settings.sh if you feel like it.

Also could you check your /etc/profile.d/infinality-settings.sh and see if it is long with lots of comments (upstream) or short (bohomil's version). I made some changes to the SlackBuild after you had posted, now using bohomil's infinality-settings.sh which looks better for me out of the box.
Hello.
I am using Slackware 14.2 / -current (I did not update all the packages).
I see that you guys are using infinality with versions of freetype 2.5 or so.
I am using freetype 2.8 and I would like to know if that AND the fact that maybe you guys had a previous version of Slackware would prevent the sources on these post from working fine with the versions I use (both freetype 2.8 and Slackware 14.2/-current).

Does anyone know? --> Since I consider myself still a beginner in Slackware I'd like to ask before trying by myself to avoid destroying my distro (which I already did once).

Thanks.
 
1 members found this post helpful.
Old 12-27-2017, 04:56 PM   #517
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,669

Original Poster
Rep: Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367
Yes you can use infinality with Slackware 14.2 because the library versions still have infinality support. You can find infinality for Slackware here https://github.com/archfan/bob-infinality-bundle. Infiniality has now been depreciated because all the various patches have been merged into the freetype source. If you want infinality looking fonts on -current follow this guide I wrote https://www.linuxquestions.org/quest...ml#post5744886
 
2 members found this post helpful.
Old 12-30-2017, 01:12 PM   #518
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,193

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Is anyone here experimenting with icon fonts? I'm trying out the following:

Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <alias>
    <family>Hack</family>
    <prefer>

      <!-- https://github.com/adobe-fonts/emojione-color -->
      <family>EmojiOne</family>

      <!-- https://github.com/ryanoasis/nerd-fonts/tree/master/src/glyphs -->
      <family>Symbols Nerd Font</family>

      <!-- https://github.com/vorillaz/devicons/tree/master/fonts -->
      <family>icomoon</family>

      <!-- https://github.com/ryanoasis/powerline-extra-symbols -->
      <family>Powerline Extra Symbols</family>

      <!-- http://google.github.io/material-design-icons/ -->
      <family>Material Icons</family>

      <family>Font Awesome 5 Free</family>
      <family>Font Awesome 5 Brands</family>

    </prefer>
  </alias>
</fontconfig>
I was using Nerd Fonts for quite a while, but I want to get away from patched fonts.

Last edited by dugan; 12-30-2017 at 01:13 PM.
 
1 members found this post helpful.
Old 12-30-2017, 01:31 PM   #519
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by dugan View Post
Is anyone here experimenting with icon fonts?
I was using the Open Logos font for awhile to get a Slackware logo in conky, but I no longer use conky so I don't have a need for it. The Nerd fonts look like a convenient way to get a battery indicator on my panel, though.
 
1 members found this post helpful.
Old 12-30-2017, 03:52 PM   #520
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,193

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
I needed at least this (~/.config/fontconfig/conf.d/10-local.conf) to see emojis in GitHub's "raw" view in Firefox:

Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <alias>
    <family>monospace</family>
    <prefer>
      <family>Hack</family>
    </prefer>
  </alias>

  <alias>
    <family>Hack</family>
    <prefer>
      <family>EmojiOne</family>
    </prefer>
  </alias>
</fontconfig>
 
Old 12-30-2017, 05:03 PM   #521
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,193

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Gave up and went back to NERD fonts. vim-devicons doesn't seem to work properly with anything else.

This is what I'll be using on my ktown system for the foreseeable future.

Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>Noto Sans</family>
    </prefer>
  </alias>

  <alias>
    <family>monospace</family>
    <prefer>
      <family>Hack Nerd Font</family>
    </prefer>
  </alias>

</fontconfig>
Emojis work fine.
 
Old 12-31-2017, 04:07 PM   #522
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
I ended up installing Font Awesome and using it on my awesome WM panel to get a battery indicator and also CPU and RAM icons. They didn't really have a proper CPU icon, but I think the calculator does a decent enough job.

To install, I didn't mess with fontconfig at all, I just used KDE System Settings (yes, while running awesome WM) to install the .otf file locally, then I copied and pasted the characters from the Font Awesome Cheat Sheet into my rc.lua config script for Awesome. UTF-8 is required.

(The font is called Font Awesome and the window manager is called awesome window manager, in case that was confusing for anyone.)
Attached Thumbnails
Click image for larger version

Name:	indicators.png
Views:	78
Size:	56.2 KB
ID:	26652  
 
Old 01-05-2018, 07:05 AM   #523
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Hi all,

I've noticed that fonts in my 14.2 could be improved. I note in the past I've had to make a few changes in both Ubuntu and Debian in order to do so, so it's no surprise that I have to do the same in Slack.

I will first attempt the install of Infinality as per this post and then symlink.

As a second option:

I note also that the OP has kindly provided links to cairo, freetype etc but these links are down. Does anyone have links that work? Apologies if I missed them. Would his fonts.conf as given in the OP still work?
 
Old 01-05-2018, 03:24 PM   #524
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,669

Original Poster
Rep: Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367
You can get infinality for slackware here, https://github.com/archfan/bob-infinality-bundle. All you have to do after you download the zip file is simply run ./install.sh and the script will do the rest. You will have to install lxml before you can install infinality. You can get that here. https://slackbuilds.org/repository/14.2/python/lxml/
 
1 members found this post helpful.
Old 01-05-2018, 03:31 PM   #525
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by Daedra View Post
You can get infinality for slackware here, https://github.com/archfan/bob-infinality-bundle. All you have to do after you download the zip file is simply run ./install.sh and the script will do the rest. You will have to install lxml before you can install infinality. You can get that here. https://slackbuilds.org/repository/14.2/python/lxml/
Thank you, I gave this a go, it works excellently.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
If I were to recompile & arch-optimize Slackware, where to begin? GrapefruiTgirl Slackware 124 06-22-2007 09:46 PM
How to Optimize Slackware 10.2? zeroz52 Slackware 23 10-04-2005 06:42 PM
How to fully optimize Slackware? Introx Slackware 4 05-30-2004 04:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration