As vaifrax points out: pango-font-description-to-string adds a trailing comma to a family name when the last word in a family list is a valid style attribute. See:
Aller Light, (Aller Light family) and
Aller LIght (Aller family with a light weight).
Simply stripping off the comma may work in practice, but we should be aware that it may make break things elsewhere. At least a comment should be added to the patch explaining why the comma is being stripped.
In the long run, it might be better to do the opposite, add a hidden comma to Aller LIght (etc.) when it is typed into the font selection drop-down.
As vaifrax points out: pango-font- description- to-string adds a trailing comma to a family name when the last word in a family list is a valid style attribute. See:
http:// developer. gnome.org/ pango/stable/ pango-Fonts. html#pango- font-descriptio n-to-string
This is to prevent confusion between:
Aller Light, (Aller Light family) and
Aller LIght (Aller family with a light weight).
Simply stripping off the comma may work in practice, but we should be aware that it may make break things elsewhere. At least a comment should be added to the patch explaining why the comma is being stripped.
In the long run, it might be better to do the opposite, add a hidden comma to Aller LIght (etc.) when it is typed into the font selection drop-down.