freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Jan Alexander Steffens
Subject: Re: [ft-devel] How to port freetype2 to a system without file system
Date: Mon, 12 Mar 2018 16:13:33 +0000

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 <address@hidden> wrote:
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 appears like a normal array.
like:
  extern char font1[];
  extern char font2[];


(actually, I store multi font files in a single romfs image block.)

Regards,
duhuanpeng





_______________________________________________
Freetype-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/freetype-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]