Re: xenocara fontconfig: make slight hinting the default

2017-01-17 Thread Nils Reuße
> Matthieu Herrb  hat am 16. Januar 2017 um 23:42 
> geschrieben:
> 
> 
> On Sun, Jan 15, 2017 at 10:37:20AM +0100, Nils Reuße wrote:
> > On 01/04/2017 01:19 PM, Nils Reuße wrote:
> > > Dear all,
> > > 
> > > fontconfig made slight hinting the default in version 2.11.95 (see commit 
> > > at [1]).
> > > 
> > > xenocara currently ships, but does not install the new hinting conf files:
> > > 
> > >   $ cd /usr/xenocara/dist/fontconfig/conf.d/
> > >   $ for file in *conf; do if ! test -f /etc/fonts/conf.avail/$file; then 
> > > echo "$file not found"; fi; done
> > >   10-hinting-full.conf not found
> > >   10-hinting-medium.conf not found
> > >   10-hinting-none.conf not found
> > >   10-hinting-slight.conf not found
> > > 
> > > The patch below installs the missing files and makes slight hinting the 
> > > default.
> > > 
> > > Any comments?
> 
> Hmm right, I forgot to add the new files.
> I'm committing the diff that installs them to conf.avail.
> I'll wait a bit until more people have tried the new default 'slight'
> anti-aliasing do decide if OpenBSD wants this as a default or not.
> 
> Most developpers are quite conservative and don't like the
> anti-aliased fonts...
> 

Hi Matthieu,

thanks for looking into it.  FWIW, the meaning of slight hinting changed as 
well [1]:

  In the past, setting ‘slight’ hinting via FontConfig or configuration GUIs 
meant that native hints within a font were ignored; FreeType’s auto-hinter 
would analyze the font on the fly and automatically do what the font designer 
would have to do at least semi-manually.
  [..]
  Setting ‘slight’ hinting usually leads to FT_LOAD_TARGET_LIGHT. This mode 
implied the auto-hinter before and has now been changed to mean “Use native 
vertical-grid-only-snapping if driver and font supports it and 
vertical-grid-only auto-hinter otherwise”. Right now, only the OpenType/CFF 
driver is supported. In the future, this will hopefully include the TrueType 
engine once full support for ClearType arrives.

(ClearType is available since 2.7)


Bitmap fonts are unaffected, of course.

[1] https://www.freetype.org/freetype2/docs/text-rendering-general.html

> > > 
> > > Kind regards
> > > Nils
> > > 
> > > [1] 
> > > https://cgit.freedesktop.org/fontconfig/commit/?id=98434b3392172233094cac25ade7225c93da9f1c
> > > 
> > > 
> > > Index: distrib/sets/lists/xetc/mi
> > > ===
> > > RCS file: /cvs/xenocara/distrib/sets/lists/xetc/mi,v
> > > retrieving revision 1.31
> > > diff -u -p -u -r1.31 mi
> > > --- distrib/sets/lists/xetc/mi  28 Oct 2015 00:46:31 -  1.31
> > > +++ distrib/sets/lists/xetc/mi  4 Jan 2017 11:21:03 -
> > > @@ -12,6 +12,7 @@
> > >  ./etc/X11/xdm/xdm-config
> > >  ./etc/X11/xinit/xinitrc
> > >  ./etc/X11/xsm/system.xsm
> > > +./etc/fonts/conf.d/10-hinting-slight.conf
> > >  ./etc/fonts/conf.d/10-scale-bitmap-fonts.conf
> > >  ./etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf
> > >  ./etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf
> > > Index: lib/fontconfig/conf.d/Makefile
> > > ===
> > > RCS file: /cvs/xenocara/lib/fontconfig/conf.d/Makefile,v
> > > retrieving revision 1.10
> > > diff -u -p -u -r1.10 Makefile
> > > --- lib/fontconfig/conf.d/Makefile  19 Nov 2016 08:45:51 -  1.10
> > > +++ lib/fontconfig/conf.d/Makefile  4 Jan 2017 11:21:03 -
> > > @@ -9,6 +9,7 @@ DOC_FILES= \
> > > README
> > > 
> > >  CONF_LINKS = \
> > > +   10-hinting-slight.conf \
> > > 10-scale-bitmap-fonts.conf \
> > > 20-unhint-small-vera.conf \
> > > 30-lucida-aliases.conf \
> > > @@ -29,6 +30,10 @@ CONF_LINKS = \
> > > 
> > >  AVAIL_FILES =  \
> > > 10-autohint.conf\
> > > +   10-hinting-full.conf\
> > > +   10-hinting-medium.conf  \
> > > +   10-hinting-none.conf\
> > > +   10-hinting-slight.conf  \
> > > 10-no-sub-pixel.conf\
> > > 10-scale-bitmap-fonts.conf  \
> > > 10-sub-pixel-bgr.conf   \
> > > 
> > 
> > Any comment?
> 
> -- 
> Matthieu Herrb



Re: xenocara fontconfig: make slight hinting the default

2017-01-16 Thread Matthieu Herrb
On Sun, Jan 15, 2017 at 10:37:20AM +0100, Nils Reuße wrote:
> On 01/04/2017 01:19 PM, Nils Reuße wrote:
> > Dear all,
> > 
> > fontconfig made slight hinting the default in version 2.11.95 (see commit 
> > at [1]).
> > 
> > xenocara currently ships, but does not install the new hinting conf files:
> > 
> >   $ cd /usr/xenocara/dist/fontconfig/conf.d/
> >   $ for file in *conf; do if ! test -f /etc/fonts/conf.avail/$file; then 
> > echo "$file not found"; fi; done
> >   10-hinting-full.conf not found
> >   10-hinting-medium.conf not found
> >   10-hinting-none.conf not found
> >   10-hinting-slight.conf not found
> > 
> > The patch below installs the missing files and makes slight hinting the 
> > default.
> > 
> > Any comments?

Hmm right, I forgot to add the new files.
I'm committing the diff that installs them to conf.avail.
I'll wait a bit until more people have tried the new default 'slight'
anti-aliasing do decide if OpenBSD wants this as a default or not.

Most developpers are quite conservative and don't like the
anti-aliased fonts...

> > 
> > Kind regards
> > Nils
> > 
> > [1] 
> > https://cgit.freedesktop.org/fontconfig/commit/?id=98434b3392172233094cac25ade7225c93da9f1c
> > 
> > 
> > Index: distrib/sets/lists/xetc/mi
> > ===
> > RCS file: /cvs/xenocara/distrib/sets/lists/xetc/mi,v
> > retrieving revision 1.31
> > diff -u -p -u -r1.31 mi
> > --- distrib/sets/lists/xetc/mi  28 Oct 2015 00:46:31 -  1.31
> > +++ distrib/sets/lists/xetc/mi  4 Jan 2017 11:21:03 -
> > @@ -12,6 +12,7 @@
> >  ./etc/X11/xdm/xdm-config
> >  ./etc/X11/xinit/xinitrc
> >  ./etc/X11/xsm/system.xsm
> > +./etc/fonts/conf.d/10-hinting-slight.conf
> >  ./etc/fonts/conf.d/10-scale-bitmap-fonts.conf
> >  ./etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf
> >  ./etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf
> > Index: lib/fontconfig/conf.d/Makefile
> > ===
> > RCS file: /cvs/xenocara/lib/fontconfig/conf.d/Makefile,v
> > retrieving revision 1.10
> > diff -u -p -u -r1.10 Makefile
> > --- lib/fontconfig/conf.d/Makefile  19 Nov 2016 08:45:51 -  1.10
> > +++ lib/fontconfig/conf.d/Makefile  4 Jan 2017 11:21:03 -
> > @@ -9,6 +9,7 @@ DOC_FILES= \
> > README
> > 
> >  CONF_LINKS = \
> > +   10-hinting-slight.conf \
> > 10-scale-bitmap-fonts.conf \
> > 20-unhint-small-vera.conf \
> > 30-lucida-aliases.conf \
> > @@ -29,6 +30,10 @@ CONF_LINKS = \
> > 
> >  AVAIL_FILES =  \
> > 10-autohint.conf\
> > +   10-hinting-full.conf\
> > +   10-hinting-medium.conf  \
> > +   10-hinting-none.conf\
> > +   10-hinting-slight.conf  \
> > 10-no-sub-pixel.conf\
> > 10-scale-bitmap-fonts.conf  \
> > 10-sub-pixel-bgr.conf   \
> > 
> 
> Any comment?

-- 
Matthieu Herrb


signature.asc
Description: PGP signature


Re: xenocara fontconfig: make slight hinting the default

2017-01-15 Thread Nils Reuße

On 01/04/2017 01:19 PM, Nils Reuße wrote:

Dear all,

fontconfig made slight hinting the default in version 2.11.95 (see commit at 
[1]).

xenocara currently ships, but does not install the new hinting conf files:

  $ cd /usr/xenocara/dist/fontconfig/conf.d/
  $ for file in *conf; do if ! test -f /etc/fonts/conf.avail/$file; then echo "$file 
not found"; fi; done
  10-hinting-full.conf not found
  10-hinting-medium.conf not found
  10-hinting-none.conf not found
  10-hinting-slight.conf not found

The patch below installs the missing files and makes slight hinting the default.

Any comments?

Kind regards
Nils

[1] 
https://cgit.freedesktop.org/fontconfig/commit/?id=98434b3392172233094cac25ade7225c93da9f1c


Index: distrib/sets/lists/xetc/mi
===
RCS file: /cvs/xenocara/distrib/sets/lists/xetc/mi,v
retrieving revision 1.31
diff -u -p -u -r1.31 mi
--- distrib/sets/lists/xetc/mi  28 Oct 2015 00:46:31 -  1.31
+++ distrib/sets/lists/xetc/mi  4 Jan 2017 11:21:03 -
@@ -12,6 +12,7 @@
 ./etc/X11/xdm/xdm-config
 ./etc/X11/xinit/xinitrc
 ./etc/X11/xsm/system.xsm
+./etc/fonts/conf.d/10-hinting-slight.conf
 ./etc/fonts/conf.d/10-scale-bitmap-fonts.conf
 ./etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf
 ./etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf
Index: lib/fontconfig/conf.d/Makefile
===
RCS file: /cvs/xenocara/lib/fontconfig/conf.d/Makefile,v
retrieving revision 1.10
diff -u -p -u -r1.10 Makefile
--- lib/fontconfig/conf.d/Makefile  19 Nov 2016 08:45:51 -  1.10
+++ lib/fontconfig/conf.d/Makefile  4 Jan 2017 11:21:03 -
@@ -9,6 +9,7 @@ DOC_FILES= \
README

 CONF_LINKS = \
+   10-hinting-slight.conf \
10-scale-bitmap-fonts.conf \
20-unhint-small-vera.conf \
30-lucida-aliases.conf \
@@ -29,6 +30,10 @@ CONF_LINKS = \

 AVAIL_FILES =  \
10-autohint.conf\
+   10-hinting-full.conf\
+   10-hinting-medium.conf  \
+   10-hinting-none.conf\
+   10-hinting-slight.conf  \
10-no-sub-pixel.conf\
10-scale-bitmap-fonts.conf  \
10-sub-pixel-bgr.conf   \



Any comment?



xenocara fontconfig: make slight hinting the default

2017-01-04 Thread Nils Reuße
Dear all,

fontconfig made slight hinting the default in version 2.11.95 (see commit at 
[1]).

xenocara currently ships, but does not install the new hinting conf files:

  $ cd /usr/xenocara/dist/fontconfig/conf.d/
  $ for file in *conf; do if ! test -f /etc/fonts/conf.avail/$file; then echo 
"$file not found"; fi; done
  10-hinting-full.conf not found
  10-hinting-medium.conf not found
  10-hinting-none.conf not found
  10-hinting-slight.conf not found

The patch below installs the missing files and makes slight hinting the default.

Any comments?

Kind regards
Nils

[1] 
https://cgit.freedesktop.org/fontconfig/commit/?id=98434b3392172233094cac25ade7225c93da9f1c


Index: distrib/sets/lists/xetc/mi
===
RCS file: /cvs/xenocara/distrib/sets/lists/xetc/mi,v
retrieving revision 1.31
diff -u -p -u -r1.31 mi
--- distrib/sets/lists/xetc/mi  28 Oct 2015 00:46:31 -  1.31
+++ distrib/sets/lists/xetc/mi  4 Jan 2017 11:21:03 -
@@ -12,6 +12,7 @@
 ./etc/X11/xdm/xdm-config
 ./etc/X11/xinit/xinitrc
 ./etc/X11/xsm/system.xsm
+./etc/fonts/conf.d/10-hinting-slight.conf
 ./etc/fonts/conf.d/10-scale-bitmap-fonts.conf
 ./etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf
 ./etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf
Index: lib/fontconfig/conf.d/Makefile
===
RCS file: /cvs/xenocara/lib/fontconfig/conf.d/Makefile,v
retrieving revision 1.10
diff -u -p -u -r1.10 Makefile
--- lib/fontconfig/conf.d/Makefile  19 Nov 2016 08:45:51 -  1.10
+++ lib/fontconfig/conf.d/Makefile  4 Jan 2017 11:21:03 -
@@ -9,6 +9,7 @@ DOC_FILES= \
README

 CONF_LINKS = \
+   10-hinting-slight.conf \
10-scale-bitmap-fonts.conf \
20-unhint-small-vera.conf \
30-lucida-aliases.conf \
@@ -29,6 +30,10 @@ CONF_LINKS = \

 AVAIL_FILES =  \
10-autohint.conf\
+   10-hinting-full.conf\
+   10-hinting-medium.conf  \
+   10-hinting-none.conf\
+   10-hinting-slight.conf  \
10-no-sub-pixel.conf\
10-scale-bitmap-fonts.conf  \
10-sub-pixel-bgr.conf   \