[moving from misc@ to ports@] On 2018-11-09, Philippe <kane.r...@gmail.com> wrote: > On 03/11/2018 18:58, Philippe wrote: >> Hello dear openbsd users, >> >> I would like to install a font (Fira Code), with ligatures. > > > Hello again, > > I know why this wasn't working: the package does not contain the > FiraCode font with ligatures. > > So, the solution is: > > mkdir ~/.local/share/fonts/ > cd ~/.local/share/fonts > git clone https://github.com/tonsky/FiraCode > fc-cache -vf > > > Et voilĂ . After a simple restart of the X session, this works! :-) > > I hoped to have the FiraCode fonts with ligatures without having to > install it by myself. I wonder why this font doesn't have ligatures in > packages, is this for compatibility reasons?
There are two different "Fira Code" fonts, the "fira-fonts" port uses Carrois/bBoxType FiraSans (https://github.com/bBoxType/FiraSans), which says "Fira Code is Fira Mono 3.206 with less Line Space (1.0) - does not include programming ligatures". I don't think we have a good way to handle two fonts with the same family name, and I'm pretty sure some people will not like the ligatures, so not sure how to best handle this in ports. It could be done with a flavour, but that might be confusing too because they come from different sources... Thoughts anyone?