Repository navigation
Add packages for a number of fonts. - #6793
Conversation
|
|
Agreed about having either all fonts under the fonts attribute or none. For this I have no preference one way or another, I mainly liked having fonts somewhat more easily discoverable. An additional complication about the fonts config is that you may or may not want to have a particular configuration enabled. For example, if you already have the Microsoft core fonts installed then you may not want to have "Comic Relief" install itself as an alias for "Comic Sans". The way, for example, Debian solves this is to have the font package install its configuration file into |
|
I have now force-pushed an updated commit which no longer contains a |
|
Idea: what about naming each fontconfig file by the font-family name that it overrides. Those file collisions would then be resolved by standard priorities that users can set. (We would need to add some files of those names to the original fonts as well, e.g. valid empty font configs.) |
|
@vcunat: That sounds really quite clever. I can give that a try. Haven't played around with priorities yet so I'm happy to get the practice :-) |
With these fontconfig files it becomes possible for other packages to configure font aliases for the Microsoft fonts. If both, for example, vista-fonts and some package providing an alias for Cambria are installed then the user may control whether or not the alias is active by manipulating the package priorities.
The added fonts are - Caladea, - Carlito, - Comfortaa, - Comic Relief, - Crimson, - Fantasque Sans Mono, - Lobster Two, - Pecita, - Quattrocento, and - Quattrocento Sans.
|
I've force-pushed commits with the priority thing implemented. I've tried it out a bit and I think it works very well. |
Also handle font-family aliases.
|
It's probably fine. I'm sorry I took so long to get back. |
Also handle font-family aliases. (I'm sorry about the bad commit above.)
|
That's ok. Thanks a lot for your input, I'm quite pleased with how it turned out. |
These are some packages for some nice fonts I like. Some of these also add fontconfig configs to establish aliases with popular Microsoft fonts but I am uncertain what is the best way to install those. I've manually added
to my
fonts.conffile but some more smooth solution should hopefully be possible.The added fonts are
Also added is a set "fonts" giving, for example, Pecita the attribute path "fonts.pecita". Again, I am not certain if this would be considered best practice or I instead should put them in the "global path".