Re: [ft-devel] FreeType incremental glyph loading

2018-01-25 Thread Ann Brednikhina
Thanks for your quick reply!
But the situation with git clone is absolutely the same. I have cloned 
http://git.sv.nongnu.org/r/freetype/freetype2.git
c:\GIT\freetype2>grep -RnP --color=always FT_IncrementalRec .
./include/freetype/ftincrem.h:85:  typedef struct FT_IncrementalRec_*  
FT_Incremental;
That is all.

25.01.2018, 14:00, "Ken Sharp" :
> At 11:51 25/01/2018 +0100, Werner LEMBERG wrote:
>
>>  > Please send me a link to the full sources or some instructions how to
>>  > add into our project.
>>
>> Incremental glyph loading is contributed code; I'm not familiar with
>> it. I hope that Chris or some other person from Artifex (the
>> ghostscript maintainers) can give hints.
>
> I was under the impression we just supplied a fix when it got broken in the
> past, but I could be mistaken. I've pinged Chris who actually has a memory
> and should be able to say definitely.
>
> Of course the full sources are available for FreeType, since its an Open
> Source Project.
>
> https://www.freetype.org/developer.html
>
> If you want to contribute, or really even develop *using* FreeType, I'd
> very strongly recommend going the Git route and cloning the FreeType Git
> repository.
>
>  Ken

Software developer


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


Re: [ft-devel] FreeType incremental glyph loading

2018-01-25 Thread Ken Sharp

At 14:31 25/01/2018 +0300, Ann Brednikhina wrote:

Thanks for your quick reply!
But the situation with git clone is absolutely the same. I have cloned 
http://git.sv.nongnu.org/r/freetype/freetype2.git

c:\GIT\freetype2>grep -RnP --color=always FT_IncrementalRec .
./include/freetype/ftincrem.h:85:  typedef struct 
FT_IncrementalRec_*  FT_Incremental;

That is all.


Its an opaque object, to be defined by the recipient and used by them. 
FreeType doesn't need to know anything about it. If you look at the 
comments above the definition there you will see:


  /***
   *
   * @type:
   *   FT_Incremental
   *
   * @description:
   *   An opaque type describing a user-provided object used to implement
   *   `incremental' glyph loading within FreeType.  This is used to support
   *   embedded fonts in certain environments (e.g., PostScript interpreters),
   *   where the glyph data isn't in the font file, or must be overridden by
   *   different values.
   *
   * @note:
   *   It is up to client applications to create and implement @FT_Incremental
   *   objects, as long as they provide implementations for the methods
   *   @FT_Incremental_GetGlyphDataFunc, @FT_Incremental_FreeGlyphDataFunc
   *   and @FT_Incremental_GetGlyphMetricsFunc.
   *
   *   See the description of @FT_Incremental_InterfaceRec to understand how
   *   to use incremental objects with FreeType.
   *
   */

The FT_Incremental_InterfaceRec is defined around line 280 in the same file.

If you want to know how Ghostscript uses it (and as far as I know 
Ghostscript is currently the only client that uses incremental font 
loading) then you'll need to look at the Ghostscript sources. Ghostscript 
is also open source.


Essentially, the client (in our case Ghostscript) adds glyphs to the font, 
and tracks them, itself. The methods for retrieving the glyph data and 
metrics are supplied by the client. So, when using the incremental 
interface, FreeType just requests the data it needs from the client when it 
needs either the metrics or outline data. Its up to the client how to store 
the data, and how to make it available to FreeType, FT doesn't need to care.



Ken


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


Re: [ft-devel] FreeType incremental glyph loading

2018-01-25 Thread Ken Sharp

At 11:51 25/01/2018 +0100, Werner LEMBERG wrote:



> Please send me a link to the full sources or some instructions how to
> add into our project.

Incremental glyph loading is contributed code; I'm not familiar with
it.  I hope that Chris or some other person from Artifex (the
ghostscript maintainers) can give hints.


I was under the impression we just supplied a fix when it got broken in the 
past, but I could be mistaken. I've pinged Chris who actually has a memory 
and should be able to say definitely.


Of course the full sources are available for FreeType, since its an Open 
Source Project.


https://www.freetype.org/developer.html

If you want to contribute, or really even develop *using* FreeType, I'd 
very strongly recommend going the Git route and cloning the FreeType Git 
repository.


Ken


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


Re: [ft-devel] FreeType incremental glyph loading

2018-01-25 Thread Werner LEMBERG

> We decided to use your engine for fonts rendering.  But we need to
> add chinese glyphs on demand and add them into a face.  I found that
> Incremental glyph loading is perfect solution for us. But...  I have
> faced with a problem: no info about structure FT_IncrementalRec_ was
> found in sources downloaded from SourceForge.  So I can not override
> the structure or even review it.
> 
> Please send me a link to the full sources or some instructions how to
> add into our project.

Incremental glyph loading is contributed code; I'm not familiar with
it.  I hope that Chris or some other person from Artifex (the
ghostscript maintainers) can give hints.

I'm open to patches that helps you get what you want.


Werner

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


[ft-devel] FreeType incremental glyph loading

2018-01-25 Thread Ann Brednikhina
Dear FreeType developers!

We decided to use your engine for fonts rendering. But we need to add chinese 
glyphs on demand and add them into a face. I found that Incremental glyph 
loading is perfect solution for us. But...
I have faced with a problem: no info about structure FT_IncrementalRec_ was 
found in sources downloaded from SourceForge. So I can not override the 
structure or even review it.

Please send me a link to the full sources or some instructions how to add into 
our project.

Best regards,
Anna Brednikhina
Software developer
LLC Aigrind


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