Re: [ft-devel] How to port freetype2 to a system without file system

2018-03-12 Thread Jan Alexander Steffens
Yes, see FT_CONFIG_OPTION_DISABLE_STREAM_SUPPORT in include/freetype/config/ftoption.h. You can load faces from memory using FT_New_Memory_Face. On Mon, Mar 12, 2018 at 4:57 PM duhuanpeng <548708...@qq.com> wrote: > Hello, > > I have ported freetype2 to our system. Our system don't supports

[ft-devel] How to port freetype2 to a system without file system

2018-03-12 Thread duhuanpeng
Hello, I have ported freetype2 to our system. Our system don't supports file system, so I write some functions to emulate file operations. > fopen, fread, etc. But now I maintain a "FILE" array, it eats a lot memory. Is there any better way to port freetype2? Our fonts are store in flash, it

[ft-devel] How to port freetype2 to a system without file system (Re: Freetype-devel Digest, Vol 158, Issue 16)

2018-03-12 Thread Hin-Tak Leung
> Message: 1 > Date: Mon, 12 Mar 2018 23:25:08 +0800 > From: "duhuanpeng" <548708...@qq.com> > To: > Subject: [ft-devel] How to port > freetype2 to a system without file >    system > Hello, > I have ported freetype2 to our system. > Our system don't supports file

Re: [ft-devel] How to port freetype2 to a system without file system

2018-03-12 Thread Werner LEMBERG
>> Can you not use FT_New_Memory_Face()? That treats a block of >> memory as a font file. You should be able to pass font1, font2 >> directly as the 2nd argument to FT_New_Memory_Face(). > > Hi, I will try this. > > Should I leave the ftsystem.c unchanged? This is up to your system. If you

Re: [ft-devel] How to port freetype2 to a system without file system

2018-03-12 Thread duhuanpeng
Hi, I want to paste the source code here, for people in the future. /*/ /* */ /* */ /*

Re: [ft-devel] How to port freetype2 to a system without file system (Re: Freetype-devel Digest, Vol 158, Issue 16)

2018-03-12 Thread duhuanpeng
> Hello, > I have ported freetype2 to our system. > Our system don't supports file system, so I write some functions to > emulate file operations. > fopen, fread, etc. > But now I maintain a "FILE" array, it > eats a lot memory. > Is there any better way to port > freetype2? > Our fonts are