Re: how to add a new font in installer package

2013-01-29 Thread Stefan Knorr
Hi Huqitu Du,

here's a link to a commit that successfully added fonts:
http://cgit.freedesktop.org/libreoffice/core/commit/?id=84ba49c55dccdd619d46e588162fb62dc31b287f

Astron.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: how to add a new font in installer package

2013-01-28 Thread huqitu du
yes, Iam sure, I don't know build a patch file, so I cut's some source
and describe it.

1.  in scp2\source\ooo\file_font_ooo.scp  add this source.
//mongolian fonts
#ifndef WITHOUT_FONTS
STD_FONT_FILE( gid_File_Fnt_MenkQagan, MQG8F01.ttf, Menk Qagan Tig)
#endif
2. in scp2\source\ooo\module_hidden_ooo.scp
#ifndef WITHOUT_FONTS
Module gid_Module_Root_Fonts_OOo_Hidden
PackageInfo = "packinfo_office.txt";
ParentID = gid_Module_Root;
InstallOrder = "100";
.
.
gid_File_Fnt_DejaVuSans,
gid_File_Fnt_MenkQagan,
3. copy MQG8F01.ttf to solver\wntmsci12.pro\bin and rebuild scp2 and
instsetoo_native modules.

except this, I add some another file(not fonts file) and it's works, but
font file is not working, I don't know why! please help!

2013/1/28 Michael Stahl 

> On 28/01/13 10:23, huqitu du wrote:
> > yes, I did it , but dosnt work!
>
> are you sure? there are 2 places in scp2 where a file has to be added,
> one is the line you quoted below, and the other is a reference from some
> other file that uses the gid_File_whatever.
>
> please post your complete patch so we can give you better advice what
> could be missing or wrong.
>
> > 2013/1/28 Andras Timar mailto:tima...@gmail.com>>
> >
> > Hi,
> >
> > On Mon, Jan 28, 2013 at 8:38 AM, huqitu du  > > wrote:
> > > I need to add a new font in installer In order to support
> traditional
> > > mongolia, and
> > > 1.  I copy font file to solver\wntmsci12.pro
> > \bin and then
> > > 2.  modify the "scp2\source\ooo\file_font_ooo.scp" as DejaVuSans
> > font did,
> > >
> > > //mongolian fonts
> > > #ifndef WITHOUT_FONTS
> > > STD_FONT_FILE( gid_File_Fnt_MenkQagan, MQG8F01.ttf, Menk Qagan Tig)
> > > #endif
> > >
> > > but when rebuild the scp2 and instsetoo_native, reinstall the
> > libreoffice,
> > > but my font not copyed to windows\fonts dir, what I need to do
> another
> > > thing?
> > >
> >
> > You need to add gid_File_Fnt_MenkQagan to
> > scp2/source/ooo/module_hidden_ooo.scp.
>
>


-- 
内蒙古蒙科立公司
胡其图
email:huq...@gmail.com
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: how to add a new font in installer package

2013-01-28 Thread Michael Stahl
On 28/01/13 10:23, huqitu du wrote:
> yes, I did it , but dosnt work!

are you sure? there are 2 places in scp2 where a file has to be added,
one is the line you quoted below, and the other is a reference from some
other file that uses the gid_File_whatever.

please post your complete patch so we can give you better advice what
could be missing or wrong.

> 2013/1/28 Andras Timar mailto:tima...@gmail.com>>
> 
> Hi,
> 
> On Mon, Jan 28, 2013 at 8:38 AM, huqitu du  > wrote:
> > I need to add a new font in installer In order to support traditional
> > mongolia, and
> > 1.  I copy font file to solver\wntmsci12.pro
> \bin and then
> > 2.  modify the "scp2\source\ooo\file_font_ooo.scp" as DejaVuSans
> font did,
> >
> > //mongolian fonts
> > #ifndef WITHOUT_FONTS
> > STD_FONT_FILE( gid_File_Fnt_MenkQagan, MQG8F01.ttf, Menk Qagan Tig)
> > #endif
> >
> > but when rebuild the scp2 and instsetoo_native, reinstall the
> libreoffice,
> > but my font not copyed to windows\fonts dir, what I need to do another
> > thing?
> >
> 
> You need to add gid_File_Fnt_MenkQagan to
> scp2/source/ooo/module_hidden_ooo.scp.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: how to add a new font in installer package

2013-01-28 Thread huqitu du
yes, I did it , but dosnt work!

2013/1/28 Andras Timar 

> Hi,
>
> On Mon, Jan 28, 2013 at 8:38 AM, huqitu du  wrote:
> > I need to add a new font in installer In order to support traditional
> > mongolia, and
> > 1.  I copy font file to solver\wntmsci12.pro\bin and then
> > 2.  modify the "scp2\source\ooo\file_font_ooo.scp" as DejaVuSans font
> did,
> >
> > //mongolian fonts
> > #ifndef WITHOUT_FONTS
> > STD_FONT_FILE( gid_File_Fnt_MenkQagan, MQG8F01.ttf, Menk Qagan Tig)
> > #endif
> >
> > but when rebuild the scp2 and instsetoo_native, reinstall the
> libreoffice,
> > but my font not copyed to windows\fonts dir, what I need to do another
> > thing?
> >
>
> You need to add gid_File_Fnt_MenkQagan to
> scp2/source/ooo/module_hidden_ooo.scp.
>
> Best regards,
> Andras
>



-- 
内蒙古蒙科立公司
胡其图
email:huq...@gmail.com
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: how to add a new font in installer package

2013-01-27 Thread Andras Timar
Hi,

On Mon, Jan 28, 2013 at 8:38 AM, huqitu du  wrote:
> I need to add a new font in installer In order to support traditional
> mongolia, and
> 1.  I copy font file to solver\wntmsci12.pro\bin and then
> 2.  modify the "scp2\source\ooo\file_font_ooo.scp" as DejaVuSans font did,
>
> //mongolian fonts
> #ifndef WITHOUT_FONTS
> STD_FONT_FILE( gid_File_Fnt_MenkQagan, MQG8F01.ttf, Menk Qagan Tig)
> #endif
>
> but when rebuild the scp2 and instsetoo_native, reinstall the libreoffice,
> but my font not copyed to windows\fonts dir, what I need to do another
> thing?
>

You need to add gid_File_Fnt_MenkQagan to scp2/source/ooo/module_hidden_ooo.scp.

Best regards,
Andras
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


how to add a new font in installer package

2013-01-27 Thread huqitu du
I need to add a new font in installer In order to support traditional
mongolia, and
1.  I copy font file to solver\wntmsci12.pro\bin and then
2.  modify the "scp2\source\ooo\file_font_ooo.scp" as DejaVuSans font did,

//mongolian fonts
#ifndef WITHOUT_FONTS
STD_FONT_FILE( gid_File_Fnt_MenkQagan, MQG8F01.ttf, Menk Qagan Tig)
#endif

but when rebuild the scp2 and instsetoo_native, reinstall the libreoffice,
but my font not copyed to windows\fonts dir, what I need to do another
thing?
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice