how to add a new font in installer package
huqitu du
huqitu at gmail.com
Mon Jan 28 18:27:39 PST 2013
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 <mstahl at redhat.com>
> 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 <timar74 at gmail.com <mailto:timar74 at gmail.com>>
> >
> > Hi,
> >
> > On Mon, Jan 28, 2013 at 8:38 AM, huqitu du <huqitu at gmail.com
> > <mailto:huqitu at gmail.com>> 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
> > <http://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:huqitu at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130129/82bb0067/attachment.html>
More information about the LibreOffice
mailing list