Re: cascading font selections?
Carl Smith wrote: So, if you embed a font, remove it from your system, then try to edit the PDF, it fails? I've never tried that. That's not it either. No one is editing PDF files. Let's say I write template.ly and make that available online. Then lots of other people download template.ly and edit it for themselves, changing the filename to my-song.ly and adding their own notes or whatever. Then they compile their own .ly files on their own systems to create their own PDFs. Now let's say I design the template to use a non-standard font. If the user doesn't have that font, then I want to specify a cascading list of alternative font selections, so that I still have some degree of control over how the output looks on a variety of unknown systems. - Mark ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cascading font selections?
Can't you send them the font you use as well as the template? Andrew Mark Polesky 29 August 2013 4:16 AM That's not it either. No one is editing PDF files. Let'ssay I write template.ly and make that available online.Then lots of other people download template.ly and edit itfor themselves, changing the filename to my-song.ly and adding their own notes or whatever. Then they compile theirown .ly files on their own systems to create their own PDFs.Now let's say I design the template to use a non-standardfont. If the user doesn't have that font, then I want tospecify a cascading list of alternative font selections, sothat I still have some degree of control over how the outputlooks on a variety of unknown systems.- Mark ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cascading font selections?
Carl Smith wrote: If the fonts are embedded in the PDF, you only need to have them on your system when you create the file. The recipient has the fonts, they're in the PDF. Okay, I appreciate the helpfulness, but a lot of you are missing the point. The recipients will be editing the files themselves, then compiling them on their own systems. - Mark ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cascading font selections?
2013/8/23 Mark Polesky markpole...@yahoo.com: Andrew Bernard wrote: Do you mean for input? Output to PDF embeds the font, so no requirement for it to be present in recipients system. I mean, if I write a .ly file that specifies fonts (fonts that I have on my own computer), and I give that file to somebody else to compile on his/her own computer... If they don't have those exact fonts on their system, I'd want their system to select from a list of *alternative* fonts, and not just revert to the default font. Is there a way? Unfortunately i don't know any. This would be useful indeed. JAnek ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cascading font selections?
Is there a way? Unfortunately i don't know any. This would be useful indeed. JAnek Wouldn't it be possible to write a scheme function that tests a list of fonts whether the font is available and returns the first that is? I don't know scheme and the font handling, so I can't do it. The difficulty is probably how to check for the font (the isInstalled function). If that was possible somehow (LP itself should somehow have a check if the loading of a font fails, I suppose), it would be possible. Just to illustrate what I mean (in python): def returnfont(fontlist): for font in fontlist: if isInstalled(font): return font print 'None of the fonts found!' return None %usage like: \override TextScript #'font-name = #returnfont(Lucida Console, Monaco, monospace) Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
cascading font selections?
Is there a way to have a cascade of font selections, like with CSS? In CSS, you can do things like: {font-family:Lucida Console, Monaco, monospace} And if Lucida Console isn't installed on a user's system, Monaco will be looked up, and if that's not installed, then the user's default monospace will be used. Is there a way to do this on LilyPond? This would be very helpful. Thanks. - Mark ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cascading font selections?
Do you mean for input? Output to PDF embeds the font, so no requirement for it to be present in recipients system. Andrew Mark Polesky 23 August 2013 11:22 AM Is there a way to have a cascade of font selections, likewith CSS? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cascading font selections?
Andrew Bernard wrote: Do you mean for input? Output to PDF embeds the font, so no requirement for it to be present in recipients system. I mean, if I write a .ly file that specifies fonts (fonts that I have on my own computer), and I give that file to somebody else to compile on his/her own computer... If they don't have those exact fonts on their system, I'd want their system to select from a list of *alternative* fonts, and not just revert to the default font. Is there a way? - Mark ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user