[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Denemo-devel] binreloc for mingw builds?
From: |
Richard Shann |
Subject: |
Re: [Denemo-devel] binreloc for mingw builds? |
Date: |
Fri, 16 Jan 2015 16:32:27 +0000 |
My email crossed in the ether with yours - I'll test further with your
new version.
In brief, yes the preferences file will prevent finding lilypond if it
has moved.
I'm fairly sure we will still have a problem for feta.ttf which has to
be in the Windows system font directory for the cairo call.
Richard
On Fri, 2015-01-16 at 16:24 +0000, Richard Shann wrote:
> On Wed, 2015-01-14 at 23:13 -0600, Jeremiah Benham wrote:
> > This may not be necessary. I have created a patch that allows the
> > fonts to show for me in XP.
>
> Actually, I've looked at the code and this fix is not a good fix - it
> causes all searches to search in the fonts directory.
> What the original code was expecting was that the fonts would be in
> usr/share/denemo/fonts but actually they are installed in
> usr/share/fonts.
>
> I've tested this using your 1.2 zip file and moving
> usr/share/fonts/truetype to usr/share/denemo/fonts/ and the typesetting
> works.
>
> I removed all the denemo, emmentaler and feta fonts from the Windows
> \Fonts directory and everything worked from the usb stick *except* the
> Denemo display. I *think* the display works via calls like this:
>
> cairo_select_font_face (cr, "feta26", CAIRO_FONT_SLANT_NORMAL,
> CAIRO_FONT_WEIGHT_NORMAL);
>
> It seems this is found in a file feta.ttf (listed as feta25.2 in the
> windows file explorer) which is installed by our current mingw
> installer - I've just tested this by deleting this font and then
> re-running the installer. Even after re-running the installer, although
> the font is present on the Vista box a re-boot is needed before it can
> be used by the Denemo display.
>
> I think this file feta.ttf in the C:\Windows\Fonts directory must be
> getting found by that cairo call since without that file the display of
> clefs etc in the Denemo display fails. (Note the Denemo.ttf font *is*
> being found - the menus and palettes work ok once the fonts from the
> Denemo sources are put in usr/share/denemo/fonts).
>
> So, the bottom line seems to be that the remaining problems with a
> relocatable mingw binary are
>
> 1) installing Denemo.ttf, feta.ttf, emmentaler.ttf in
> usr/share/denemo/fonts/truetype instead of usr/share/fonts/truetype
> (or alternatively changing the search path in Denemo)
>
> 2)getting the Denemo display font found without putting the font in the
> windows font directory.
>
> 1) we have already a hack in git which is ok for now - the question is
> how to get the
>
> cairo_select_font_face (cr, "feta26", CAIRO_FONT_SLANT_NORMAL,
> CAIRO_FONT_WEIGHT_NORMAL)
>
> call working without installing a font in the Windows\Fonts directory
> and re-booting.
>
> Richard
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> > I didn't even need to run the utility.
> >
> > diff --git a/src/core/utils.c b/src/core/utils.c
> > index f1c107e..7c04963 100644
> > --- a/src/core/utils.c
> > +++ b/src/core/utils.c
> > @@ -2807,7 +2807,7 @@ find_denemo_file (DenemoDirectory dir, gchar*
> > filename)
> > dirs = g_list_append(dirs, g_build_filename(get_executable_dir (),
> > "..", get_local_dir (dir), NULL));
> > dirs = g_list_append(dirs, g_build_filename(get_user_data_dir
> > (TRUE), get_local_dir (dir), NULL));
> > dirs = g_list_append(dirs, g_strdup(get_system_dir(dir)));
> > -
> > + dirs = g_list_append(dirs, g_build_filename(get_executable_dir (),
> > "..", "share/fonts/truetype/denemo/"));
> > return find_path_for_file (filename, dirs);
> > }
> >
> >
> > Would you like me to apply the patch or would you do it differently?
> >
> > Jeremiah
> > ~
> >
> > ~
> >
> >
> >
> >
> > On Wed, Jan 14, 2015 at 6:29 AM, Richard Shann
> > <address@hidden> wrote:
> > I haven't been able to locate the source code on that site
> > though. The
> > toplevel http://www.marshwiggle.net says they had a server
> > crash and to
> > contact the author... Shall I do that or would you like to?
> >
> > Richard
> >
> >
> > On Wed, 2015-01-14 at 06:08 -0600, Jeremiah Benham wrote:
> > > http://www.marshwiggle.net/regfont/
> > >
> > > It was in my previous email.
> > >
> > > Jeremiah
> > >
> > > On Jan 14, 2015 5:55 AM, "Richard Shann"
> > <address@hidden>
> > > wrote:
> > > The README says that regfont is GPL, do you have the
> > source
> > > code? I
> > > didn't find it in a google search ... it will be
> > good to
> > > re-use the code
> > > inside Denemo rather than launching an external
> > process, I'm
> > > sure I can
> > > do that if you have the source code.
> > >
> > > Richard
> > >
> > > On Tue, 2015-01-13 at 22:10 -0600, Jeremiah Benham
> > wrote:
> > > > I have created a new mingw that contains usr\bin
> > \regont:
> > > >
> > >
> >
> > http://denemo.org/~jjbenham/gub/uploads/denemo-1.2.0-win_font_test.zip
> > > > regfont -a font.ttf needs to be fun before denemo
> > starts in
> > > order for
> > > > the fonts to show. I have tested this a little and
> > the fonts
> > > show in
> > > > Windows7 but not XP.
> > > >
> > > >
> > > > Jeremiah
> > > >
> > > >
> > > >
> > > > On Tue, Jan 13, 2015 at 10:37 AM, Jeremiah Benham
> > > > <address@hidden> wrote:
> > > > The patch I created needs a little work.
> > There is
> > > something
> > > > suspicious with that error message at the
> > beginning.
> > > I had
> > > > trouble testing it in windows. I will try
> > to debug
> > > that in
> > > > Linux first.
> > > >
> > > > I also found this utility for registering
> > fonts in
> > > Windows. It
> > > > is written in c and is under the GPL.
> > > > http://www.marshwiggle.net/regfont/
> > > >
> > > > So if it works we need to add this utility
> > into the
> > > bin
> > > > directory or make it part of denemo if it
> > is a
> > > Windows build.
> > > >
> > > > Jeremiah
> > > >
> > > >
> > > > On Jan 10, 2015 11:06 PM, "Jeremiah
> > Benham"
> > > > <address@hidden> wrote:
> > > > I found documentation for
> > AddFontResource
> > > here:
> > > >
> > >
> >
> > http://msdn.microsoft.com/en-us/library/windows/desktop/dd183326%28v=vs.85%29.aspx
> > > >
> > > > I see it called in
> > add_font_directory() and
> > > > add_font_file()
> > > >
> > > > I always see this error when
> > launching
> > > denemo no
> > > > matter if the fonts show up or
> > not!:
> > > >
> > > > Denemo - CRITICAL: Could not find
> > feta.ttf
> > > > Denemo - CRITICAL: Could not find
> > Denemo.ttf
> > > > Denemo - CRITICAL: Could not find
> > > emmentaler.ttf
> > > >
> > > >
> > > > I just created a patch in attempt
> > to remedy
> > > the above.
> > > > I will rebuild now and test it.
> > > >
> > > >
> > > > Jeremiah
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On Sat, Jan 10, 2015 at 12:10 PM,
> > Richard
> > > Shann
> > > > <address@hidden> wrote:
> > > > On Fri, 2015-01-09 at
> > 23:12 -0600,
> > > Jeremiah
> > > > Benham wrote:
> > > > > I found that mingw build
> > was
> > > already
> > > > relocatable.
> > > > >
> > > >
> > >
> >
> > http://denemo.org/~jjbenham/gub/uploads/denemo-1.2.0-win_rococ_test.zip
> > > > >
> > > > >
> > > > > I tested it in windows 7
> > > >
> > > > I've tested it in Vista on
> > a machine
> > > that
> > > > previously had Denemo
> > > > installed, and it was able
> > to find
> > > the fonts
> > > > from the previous
> > > > installation (presumably
> > in C:
> > > \Windows\Fonts)
> > > >
> > > > Is there a standard
> > install-a-font
> > > thing in
> > > > windows? I don't know of
> > > > one, but I think if a user
> > clicks on
> > > a font
> > > > then windows might offer
> > to
> > > > install it (???)
> > > > Is there a
> > private-to-the-user font
> > > thing on
> > > > windows? There is the code
> > > >
> > > > #ifdef G_OS_WIN32
> > > > AddFontResource
> > (fontpath);
> > > > #endif
> > > > which is in utils.c does
> > this set
> > > fontpath to
> > > > the USB memory stick if
> > > > that is where the binary
> > is?
> > > >
> > > >
> > > >
> > > > Richard
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
> >
> >
> >
>
>
>
> _______________________________________________
> Denemo-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/denemo-devel
- Re: [Denemo-devel] binreloc for mingw builds?, (continued)
- Re: [Denemo-devel] binreloc for mingw builds?, Richard Shann, 2015/01/10
- Re: [Denemo-devel] binreloc for mingw builds?, Richard Shann, 2015/01/10
- Re: [Denemo-devel] binreloc for mingw builds?, Jeremiah Benham, 2015/01/11
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Re: [Denemo-devel] binreloc for mingw builds?, Richard Shann, 2015/01/15
- Message not available
- Re: [Denemo-devel] binreloc for mingw builds?, Richard Shann, 2015/01/15
- Re: [Denemo-devel] binreloc for mingw builds?, Jeremiah Benham, 2015/01/15
- Re: [Denemo-devel] binreloc for mingw builds?, Richard Shann, 2015/01/16
- Re: [Denemo-devel] binreloc for mingw builds?, Jeremiah Benham, 2015/01/16
- Re: [Denemo-devel] binreloc for mingw builds?, Richard Shann, 2015/01/16
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Re: [Denemo-devel] binreloc for mingw builds?, Richard Shann, 2015/01/16
- Re: [Denemo-devel] binreloc for mingw builds?,
Richard Shann <=