[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: |
Thu, 15 Jan 2015 08:49:09 +0000 |
Jeremiah,
I have pushed a slightly modified version to git (without the trailing
NULL it can fail sometimes). If you can post up a new version built from
git master that will be good news for Ellen too as she has trouble with
staff selection by mouse in the current version which I fixed yesterday.
Richard
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. 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] binreloc for mingw builds?, Jeremiah Benham, 2015/01/03
- Re: [Denemo-devel] binreloc for mingw builds?, Richard Shann, 2015/01/04
- Re: [Denemo-devel] binreloc for mingw builds?, Richard Shann, 2015/01/04
- Re: [Denemo-devel] binreloc for mingw builds?, Jeremiah Benham, 2015/01/05
- Re: [Denemo-devel] binreloc for mingw builds?, Richard Shann, 2015/01/06
- Re: [Denemo-devel] binreloc for mingw builds?, Jeremiah Benham, 2015/01/10
- 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 <=
- 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
- Re: [Denemo-devel] binreloc for mingw builds?, Richard Shann, 2015/01/16
- Re: [Denemo-devel] binreloc for mingw builds?, Richard Shann, 2015/01/17
- Re: [Denemo-devel] binreloc for mingw builds?, Richard Shann, 2015/01/17
- Re: [Denemo-devel] binreloc for mingw builds?, Richard Shann, 2015/01/17
- Re: [Denemo-devel] binreloc for mingw builds?, Jeremiah Benham, 2015/01/17