Re: Marking up titles - font-name and italics
Ah, well maybe sometime in the future. Anyways, I managed to try out your guy's fix and it works! Thank you all again so very much! On Fri, 25 Aug 2017 02:47:32 -0400 tisimst tisimst.lilyp...@gmail.com wrote On Thu, Aug 24, 2017 at 11:36 PM, Daniel Cory [via Lilypond] [hidden email] wrote: Wow, you both really helped me there. I understand what is going on behind the scenes. I will have to try that when I get a chance. I also have a follow up question. Is there a way to adjust a text's tracking or kearning? I'm afraid there's not a built-in way of changing these manually at the moment. You're not the only one who has wished for this ability, though. Best, Abraham View this message in context:Re: Marking up titles - font-name and italics Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Marking up titles - font-name and italics
On Thu, Aug 24, 2017 at 11:36 PM, Daniel Cory [via Lilypond] < ml+s1069038n205250...@n5.nabble.com> wrote: > > Wow, you both really helped me there. I understand what is going on behind > the scenes. I will have to try that when I get a chance. I also have a > follow up question. Is there a way to adjust a text's tracking or kearning? > I'm afraid there's not a built-in way of changing these manually at the moment. You're not the only one who has wished for this ability, though. Best, Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/Marking-up-titles-font-name-and-italics-tp205248p205251.html Sent from the User mailing list archive at Nabble.com.___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Marking up titles - font-name and italics
Wow, you both really helped me there. I understand what is going on behind the scenes. I will have to try that when I get a chance. I also have a follow up question. Is there a way to adjust a text's tracking or kearning? On Fri, 25 Aug 2017 01:30:16 -0400 Abraham Lee tisimst.lilyp...@gmail.com wrote Hi, Brian. On Thu, Aug 24, 2017 at 11:22 PM Brian Barker b.m.bar...@btinternet.com wrote: At 22:07 24/08/2017 -0700, Abraham Noname wrote: In order for \italic, \bold, etc. to work in a markup, what you need to do as add Arial as a font-family. The easiest way is to set it as one of the main global text fonts, like 'sans. If you are using 2.18, then use make-pango-font-tree, as described here: [...] Why not just \override #'(font-name . "Arial Italic") and no \italic ? That definitely works. I was just trying to clear up the misconception surrounding what the OP thought \override #'(font-name . "Arial") was supposed to do. If that is really all that Daniel wanted to accomplish without the flexibility of being able to use the other font variants, then what you suggested is a perfectly acceptable way to do that. (I suggested this to the list, but - like most of my messages - it was not posted.) Hmmm... that is odd. Are you certain you are subscribed to the mailing list? Best, Abraham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Marking up titles - font-name and italics
Hi, Daniel! On Thu, Aug 24, 2017 at 9:17 PM, Daniel Cory [via Lilypond] < ml+s1069038n205248...@n5.nabble.com> wrote: > Hello, > > I have what seems to be a rather simple problem. I am trying to format the > font of my piece title. I can change it to italics, and I can change the > font name, but I just can't seem to do both. Please keep in mind that I am > extremely new to lilypond, so I may be missing something simple, but here > is my code. > > \header { > >title = \markup { > \override #'(font-name . "Arial") > \italic > {This is a test} > >} > } > > I thought that maybe it was the braces around my text so I took them out, > I've tried putting quotes around, I've tried changing the order of my > markup. I just can't seem to do both font-name and another markup. Could > someone please tell me what I'm doing wrong? > Here's what's going on. When you override 'font-name, you are very specifically changing the font to the one file who's internal name is "Arial". In other words, it doesn't tell LilyPond that there are other variants (like Italic, Bold, and Bold-Italic), just the exact one you specify. That is why nothing seems to happen when you use \italic here. If LilyPond doesn't think a italic/bold/whatever font variant is there, it falls back to the regular variant. So, what is to be done? In order for \italic, \bold, etc. to work in a markup, what you need to do as add Arial as a font-family. The easiest way is to set it as one of the main global text fonts, like 'sans. If you are using 2.18, then use make-pango-font-tree, as described here: http://lilypond.org/doc/v2.18/Documentation/notation/fonts#entire-document-fonts make-pango-font-tree takes three inputs in this order: a roman (or serif) font, a sans-serif font, and typewriter (or monospace) font. So, all you need to do is make sure that you put "Arial" as the second input. Then, in the markup you can do title = \markup { \sans \italic "This is a test" } and it will display in the correct form you expected. Hope that helps, Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/Marking-up-titles-font-name-and-italics-tp205248p205249.html Sent from the User mailing list archive at Nabble.com.___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Marking up titles - font-name and italics
Hello, I have what seems to be a rather simple problem. I am trying to format the font of my piece title. I can change it to italics, and I can change the font name, but I just can't seem to do both. Please keep in mind that I am extremely new to lilypond, so I may be missing something simple, but here is my code. \header { title = \markup { \override #'(font-name . "Arial") \italic {This is a test} } } I thought that maybe it was the braces around my text so I took them out, I've tried putting quotes around, I've tried changing the order of my markup. I just can't seem to do both font-name and another markup. Could someone please tell me what I'm doing wrong? Thank you! ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user