Regarding `Test framework' project.

2020-03-14 Thread Parth Wazurkar
Hi Werner, I went through the GSoC 2017 implementation of the `test-famework' project. * Some ideas like, using Murmur hash, using CSS sprite sheets for images are well discussed previously and spending time again for them will just be like reinventing the wheel. * So, I feel instead of starting

Re: [ft-devel] VF driver status

2018-11-25 Thread Parth Wazurkar
> > >> > i would like to know the status of the VF driver (which was a > >> > part of the work for GSoC if I'm not mistaken) > >> > >> It's currently unfinished. [...] > > > > any news about these drivers ? still unfinished ? > > Alas, no progress. Parth? > Yes, This semester has been a lot

Re: [ft-devel] Problem in ft2-demo compilation.

2018-09-27 Thread Parth Wazurkar
> > > Not yet, thanks. I'll first try to update the `rules.mk'. > > I've now updated the description of `X11_PATH' in this file to be as > concise as possible. > Thanks :-) Parth ___ Freetype-devel mailing list Freetype-devel@nongnu.org

Re: [ft-devel] Problem in ft2-demo compilation.

2018-09-27 Thread Parth Wazurkar
> > > I installed ubutnu 18.04 in a virtualbox and tested this there too, > > initially it returned error with `make X11_PATH=/usr/include' then I > > found out `libx11-dev' was missing, so I installed it and then when > > I did `make X11_PATH=/usr/include' it allocated display surface and > >

Re: [ft-devel] Problem in ft2-demo compilation.

2018-09-22 Thread Parth Wazurkar
> > > This >> > >> > make X11_PATH="/usr/include \ >> > /usr/lib/x86_64-linux-gnu/X11/rstart/commands/x11r6" >> > >> > worked for me. >> >> Thanks. The latter part looks strange. I'm rather sure that this is >> *not* a standard directory for X11 libraries. Are there no soft

Re: [ft-devel] Problem in ft2-demo compilation.

2018-09-22 Thread Parth Wazurkar
> > > This > > > > make X11_PATH="/usr/include \ > > /usr/lib/x86_64-linux-gnu/X11/rstart/commands/x11r6" > > > > worked for me. > > Thanks. The latter part looks strange. I'm rather sure that this is > *not* a standard directory for X11 libraries. Are there no soft links >

Re: [ft-devel] Problem in ft2-demo compilation.

2018-09-20 Thread Parth Wazurkar
> > > libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 >> > (0x7f40192d7000) >> > >> > Also, `libx11-dev' is properly installed, and `libX11.so' files are >> > located in `/usr/lib/x86_64-linux-gnu/'. >> >> Have a look into `graph/x11/rules.mk'. There you can see the >> locations

Re: [ft-devel] Problem in ft2-demo compilation.

2018-09-18 Thread Parth Wazurkar
> > > libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 > > (0x7f40192d7000) > > > > Also, `libx11-dev' is properly installed, and `libX11.so' files are > > located in `/usr/lib/x86_64-linux-gnu/'. > > Have a look into `graph/x11/rules.mk'. There you can see the > locations where make

Re: [ft-devel] Problem in ft2-demo compilation.

2018-09-17 Thread Parth Wazurkar
> > > which when compared to a correct compilation, has a > > difference of these libraries, > > > > libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 > (0x7f40192d7000) > > libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 > (0x7f40188ac000) > > libdl.so.2 =>

Re: [ft-devel] Problem in ft2-demo compilation.

2018-09-17 Thread Parth Wazurkar
I tested the compilation on a fresh ubuntu 18.04 box, and `ft2-demos' are not allocating a display surface. Here is the output of `ldd path/to/installed/ftview': linux-vdso.so.1 (0x7fff350b1000) libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x7f252ae51000)

Re: [ft-devel] Problem in ft2-demo compilation.

2018-09-05 Thread Parth Wazurkar
> > > I suggest you wipe out your git repositories, get clean copies, and > > build everything from scratch. You have nothing to lose. > > And you should check whether you can compile any other (simple) X11 > program. > It worked! :-) I have been rigorously tweaking into it and don't know what

Re: [ft-devel] Problem in ft2-demo compilation.

2018-09-05 Thread Parth Wazurkar
> > >> Please send the output of `ldd /path/to/installed/ftview'. > > > > linux-vdso.so.1 => (0x7ffd9c5fb000) > > libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x7f4019611000) > > libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 > (0x7f40192d7000) > > libc.so.6 =>

Re: [ft-devel] Problem in ft2-demo compilation.

2018-09-05 Thread Parth Wazurkar
> > Please send the output of `ldd /path/to/installed/ftview'. > linux-vdso.so.1 => (0x7ffd9c5fb000) libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x7f4019611000) libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x7f40192d7000) libc.so.6 =>

Re: [ft-devel] Problem in ft2-demo compilation.

2018-09-04 Thread Parth Wazurkar
> > > These are running totally fine. > > > >> Maybe an X11 library is missing. BTW, tracing with FT2_DEBUG doesn't > >> help in this case, since the error is not located in the FreeType > >> library. > > > > > > Yes. > > Yes or no? > `libX11-devel' is properly installed and is up to date. Your

Re: [ft-devel] Problem in ft2-demo compilation.

2018-09-04 Thread Parth Wazurkar
> > >> Are you running an X server? Some GNU/Linux boxes use Wayland > >> instead; on such machines X11 must be handled separately. > > > > Yes, I am running X11, I checked with `echo $XDG_SESSION_TYPE', > > although many ubuntu distributions use wayland instead. Still, it > > is causing the

Re: [ft-devel] Readme and comments for freetype2-demos

2018-09-03 Thread Parth Wazurkar
> > Currently, the options for demo programs are shown in the menu opened by > '?', so a readme for freetype2-demos programs explaining the demo programs > and their options would be great. Compared to freetype2 library comments > can be improved in freetype2-demos for better readability of code.

[ft-devel] Upcoming changes in the GF driver.

2018-09-02 Thread Parth Wazurkar
Hi all, Following are the changes to be completed in the GF driver, which I will be implementing in the coming days: 1. Solving the `cmap' problem. 2. Adding artificial glyphs in the GF driver. 3. Using the `xxx' and `yyy' information to derive the `cmap' scheme. Please suggest any more changes

Re: [ft-devel] GF's cmap fails

2018-08-21 Thread Parth Wazurkar
> > Well, the glyphs aren't `loaded'; you are rather collecting the file > offsets in an array. > Yes. > > It loads glyphs in the increasing order of their character code. > > Not necessarily: The order of `char_loc' commands could be arbitrary, > say, > > Character 3: dx 3801088 (58), width

Re: [ft-devel] GF's cmap fails

2018-08-20 Thread Parth Wazurkar
> > > After some debugging, I found out that, I was using binary search on > > the encodings array in the `char_index' function, although it wasn't > > sorted (so foolish of me :( ). Now, fixed! Thanks. > > In the commit message, you write > > Use `linear search' instead of `binary search' in

Re: [ft-devel] GF's cmap fails

2018-08-14 Thread Parth Wazurkar
> > >> ./ftview -e "" 20 cmr10.600gf > >> > >> only shows `A' glyphs. [...] > > > > Ok. Currently the GF's cmap is like, the first glyph in the file is > > indexed to 0, and so on. So in cmr10.600gf, `ABCD...' appear first > > so they are now indexed from `0,1,2..' > > This is correct. > > >

Re: [ft-devel] GF's cmap fails

2018-08-12 Thread Parth Wazurkar
> > [commit 401ce90 -> parthw-cleaned, origin/parthw-cleaned)] > > Parth, > > > calling > > ./ftview -e "" 20 cmr10.600gf > > only shows `A' glyphs. This is incorrect. It should rather start > with `ΓΔΘΛΞΠ...' since `-e ""' invokes the font's internal cmap (this > is, the only cmap that GF

Re: [ft-devel] comments on GF driver

2018-08-12 Thread Parth Wazurkar
> > > please test on the `cleaned' branch I have mostly fixed all the > > bugs, please check there now, I did not push changes to the `wip' > > branch. > > OK, will do, perhaps tomorrow morning. Now I'm going to watch the > Perseid meteor shower :-) > No problem :-) Btw, I have mostly fixed all

Re: [ft-devel] comments on GF driver

2018-08-12 Thread Parth Wazurkar
> > * A missing TFM module is not a reason to abort loading of the GF > file, cf. line 222 in `gfdrivr.c'. Or is it? Does loading a plain > GF file (without a TFM file) needs code from the TFM module? > Yes, it is needed as we have not defined a macro like `T1_CONFIG_OPTION_NO_AFM' for the

Re: [ft-devel] comments on GF driver

2018-08-12 Thread Parth Wazurkar
> > [Now testing `wip' branch, commit b064189c9] > > > while debugging your code I've observed some issues. > > Here the next bunch of comments. There is so much still to do... > > * The code to compute `encoding' in function `gf_set_encodings' looks > overly complicated. I don't think you

Re: [ft-devel] success?

2018-08-10 Thread Parth Wazurkar
> > >> But, even after setting all the metric values and bitmap, it is not > >> displaying a glyph in `ftview' and just displaying a blank output. > > Thanks to your new branch in `freetype2-demos' I can finally test the > GF+TFM combo... > > Assuming that you are running a GNU/Linux box: Have you

Re: [ft-devel] [GSoC] Updates for `pk' and `vf' driver.

2018-08-01 Thread Parth Wazurkar
> > > * PK driver is now working properly and displaying glyphs in > > `ftview'. There was a bug in vflib's code, the problem is its code > > does not follow `pktype' properly, I have made corrections in the > > `pk driver'. I am attaching a screenshot of the output. > > Excellent! Please

[ft-devel] [GSoC] Updates for `pk' and `vf' driver.

2018-08-01 Thread Parth Wazurkar
Hi all, Some quick updates: * PK driver is now working properly and displaying glyphs in `ftview'. There was a bug in vflib's code, the problem is its code does not follow `pktype' properly, I have made corrections in the `pk driver'. I am attaching a screenshot of the output. * Some `pk' files

Re: [ft-devel] GF + TFM

2018-07-28 Thread Parth Wazurkar
> > > On line 243 [of `ftcommon.c'], it checks for the extension of the > > font file and proceeds further. Now `type1' files have fixed > > extensions `pfa' or `pfb' so there is no problem, but `gf' or `pk' > > files can have varied extensions and thus is not invoking the `tfm' > > module, what

Re: [ft-devel] GF + TFM

2018-07-28 Thread Parth Wazurkar
> > > For testing the `tfm' module in `ftview', I tried to do some changes >> > in the `ftcommon.c' file, but could not solve the problem, can you >> > tell me what am I missing in this. >> > >> > Here is the diff of my changes in `ftcommon.c':[...] >> > After adding some tracing calls, I compared

Re: [ft-devel] GF + TFM

2018-07-27 Thread Parth Wazurkar
> > > For testing the `tfm' module in `ftview', I tried to do some changes > > in the `ftcommon.c' file, but could not solve the problem, can you > > tell me what am I missing in this. > > > > Here is the diff of my changes in `ftcommon.c': > > > > diff --git a/src/ftcommon.c b/src/ftcommon.c > >

Re: [ft-devel] GF + TFM

2018-07-27 Thread Parth Wazurkar
Hi, For testing the `tfm' module in `ftview', I tried to do some changes in the `ftcommon.c' file, but could not solve the problem, can you tell me what am I missing in this. Here is the diff of my changes in `ftcommon.c': diff --git a/src/ftcommon.c b/src/ftcommon.c index 1ef3495..3526231

[ft-devel] Possible typo in `FT_Module_Class' description.

2018-07-25 Thread Parth Wazurkar
Hi all, I came across the description of `FT_Module_Class' in `ftmodapi.h', I found that there is no description of `module_interface' field in its description. I doubt this is intentional and maybe it is an oversight. Maybe its description can be added too. Thank you Parth

Re: [ft-devel] GF + TFM

2018-07-25 Thread Parth Wazurkar
> > > I found out `T1_CONFIG_OPTION_NO_AFM' option, should we have such an > > option like `TEX_CONFIG_OPTION_NO_TFM' for our tfm driver? What do > > you suggest. > > I think this is not necessary. There are other possibilities to not > compile the GF/PK/TFM/VF combo (namely, to omit the

Re: [ft-devel] GF + TFM

2018-07-25 Thread Parth Wazurkar
> > >> A separate TFM module makes sense IMHO, since exactly the same code >> >> will be used for the PK module also. And VF will need this, too. >> >> Compare this to the `psaux' module which provides routines for CFF, >> >> Type1, Type42, and CID fonts. >> > >> > Can you please tell me which

Re: [ft-devel] GF + TFM

2018-07-25 Thread Parth Wazurkar
> > >> A separate TFM module makes sense IMHO, since exactly the same code > >> will be used for the PK module also. And VF will need this, too. > >> Compare this to the `psaux' module which provides routines for CFF, > >> Type1, Type42, and CID fonts. > > > > Can you please tell me which files

Re: [ft-devel] GF + TFM

2018-07-25 Thread Parth Wazurkar
> > >> Please have a look how AFM files are attached to Type 1 fonts; it > >> basically does the same, namely to add more metric information. I > >> suggest that you use this as a template. > > > > If we use this as a template, then there is no need to have a > > separate TFM driver, as VFlib's

Re: [ft-devel] GF + TFM

2018-07-25 Thread Parth Wazurkar
> > > Ok, then I have a pretty clear idea about how to accomplish it, I > > will create some API functions in the `tfm' driver's service code > > which will be used in the `gf', `pk' and `vf' drivers to extract the > > tfm data. > > Please have a look how AFM files are attached to Type 1 fonts; it

Re: [ft-devel] GF + TFM

2018-07-20 Thread Parth Wazurkar
> > >> >> Yes, it has been already done. > >> > >> Hmm. Which commit is this? I don't see anything recent change in > >> the `parthw-cleanup' branch related to this issue. > > > > Actually this was done from the start itself, I misunderstood > > somethings and got confused myself and then I

Re: [ft-devel] GF + TFM

2018-07-20 Thread Parth Wazurkar
> > >>> And what about making GF loading the bitmaps on demand only? > >> > >> Yes, it has been already done. > > Hmm. Which commit is this? I don't see anything recent change in the > `parthw-cleanup' branch related to this issue. > Actually this was done from the start itself, I misunderstood

Re: [ft-devel] GF + TFM

2018-07-20 Thread Parth Wazurkar
> > >> Please finish the GF + TFM combo first. > >> > > > > Ok, then I have a pretty clear idea about how to accomplish it, I > > will create some API functions in the `tfm' driver's service code > > which will be used in the `gf', `pk' and `vf' drivers to extract the > > tfm data. > > Please have

Re: [ft-devel] GF + TFM

2018-07-20 Thread Parth Wazurkar
> > >> the next step is `attaching' a TFM file to GF (and later on to PK), > >> i.e., providing the internal code for `FT_Attach_File' and > >> `FT_Attach_Stream' so that GF's metric data gets completed. Any > >> estimate when you are done with this? > > > > I don't think that would be necessary,

Re: [ft-devel] GF + TFM

2018-07-19 Thread Parth Wazurkar
> > Parth, > > > the next step is `attaching' a TFM file to GF (and later on to PK), > i.e., providing the internal code for `FT_Attach_File' and > `FT_Attach_Stream' so that GF's metric data gets completed. Any > estimate when you are done with this? > I don't think that would be necessary, as

Re: [ft-devel] GSoC status update.

2018-07-17 Thread Parth Wazurkar
> > >> I wonder whether it makes sense to add an artificial space glyph to > >> the GF + TFM combo – most font formats have a space glyph for > >> simple string support... What do you think? > >> > >> The width of such a space glyph could be derived from TFM's > >> `param[2]' value. > > > > I

Re: [ft-devel] GSoC status update.

2018-07-17 Thread Parth Wazurkar
> > Now `ftview' displays the gf glyphs too! > I am attaching a screenshot of the output from `ftview' and `ftstring'! > [...] > I have cleaned up the code for `gf driver' in the branch `parthw-cleaned', removed all unnecessary typedefs and comments. I have currently tested for many `gf' files,

Re: [ft-devel] [freetype2] parthw-cleaned 42890cf 2/2: [gf] Register gf services.

2018-07-17 Thread Parth Wazurkar
> > > +#define FT_SERVICE_GF_H > > Do you think there will be a new service special to GF? Otherwise a > file `svgf.h' is not needed. > > To answer my own question: Probably yes, namely to make the `xxx' and > `yyy' data publicly available. If you are going to do that, do you > already have

Re: [ft-devel] GSoC status update.

2018-07-16 Thread Parth Wazurkar
> > >> Now `ftview' displays the gf glyphs too! I am attaching a > >> screenshot of the output from `ftview' and `ftstring'! [...] > > Looks good, thanks! > > I wonder whether it makes sense to add an artificial space glyph to > the GF + TFM combo – most font formats have a space glyph for

Re: [ft-devel] GSoC status update.

2018-07-16 Thread Parth Wazurkar
> > >>> Perhaps there is some missing documentation or a missing > >>> explanatory comment in the code... > > > > Hmm, maybe a note on this could go into `FreeType Design / IV', as a > > list of services all drivers are required to implement. > > Good idea! Parth, please file a bug report (with

Re: [ft-devel] GSoC status update.

2018-07-16 Thread Parth Wazurkar
> >>> I've still not found time to have a closer look at the issue, sorry >>> >>> (still on vacation more or less). Please try to debug it by >>> >>> yourself also – I can only assist, since it's actually your job to >>> >>> find the bug... >>> >> >>> >> Yes, I am working on it. If you could

Re: [ft-devel] GSoC status update.

2018-07-16 Thread Parth Wazurkar
> > >>> I've still not found time to have a closer look at the issue, sorry > >>> (still on vacation more or less). Please try to debug it by > >>> yourself also – I can only assist, since it's actually your job to > >>> find the bug... > >> > >> Yes, I am working on it. If you could just give

Re: [ft-devel] GSoC status update.

2018-07-14 Thread Parth Wazurkar
> > >> I've still not found time to have a closer look at the issue, sorry > >> (still on vacation more or less). Please try to debug it by > >> yourself also – I can only assist, since it's actually your job to > >> find the bug... > > > > Yes, I am working on it. If you could just give me a

Re: [ft-devel] GSoC status update.

2018-07-14 Thread Parth Wazurkar
> > > * GF Driver: I have added support for parsing the `xxx' and `yyy' > > commands. Now the gf driver supports all the `gf' font files! I am > > working on the possibilities of parsing information from these > > commands. > > Good. Does `ftview' amd friends already work? No not yet. >

[ft-devel] GSoC status update.

2018-07-13 Thread Parth Wazurkar
Hi all, Here are some quick updates, * GF Driver: I have added support for parsing the `xxx' and `yyy' commands. Now the gf driver supports all the `gf' font files! I am working on the possibilities of parsing information from these commands. * PK Driver: The `pk' driver is almost similar to the

Re: [ft-devel] Problems with gfdriver in ftview.

2018-07-11 Thread Parth Wazurkar
> > >> Well, simply follow the documentation, i.e., set `pitch' to > >> > >> w + 7) / 8) + 1) / 2) * 2 > >> > >> (but with some better C code :-) and use this value for creating > >> the bitmap. > > > > Ok, I did change the value of pitch (6) and tried to draw `a', it is > > giving a wrong

Re: [ft-devel] Problems with gfdriver in ftview.

2018-07-10 Thread Parth Wazurkar
> > > [...] I still have a doubt about pitch value, currently it is set to > > (w+7) / 8 (w: glyph width ). The documentation says `For the B/W > > rasterizer, ‘pitch’ is always an even number.' but this is also > > returning odd values. Is there any problem in this? > > Well, simply follow the

Re: [ft-devel] Problems with gfdriver in ftview.

2018-07-10 Thread Parth Wazurkar
> > > I have removed all the memory leak errors in the gf driver. But now > > when I run `ftview', it is still not loading the glyphs. > > Before delving into this issue: Does your `ftexample' now work > correctly? > Yes, I can't say for sure as I didn't draw every glyph by the gdb method (It

[ft-devel] Problems with gfdriver in ftview.

2018-07-10 Thread Parth Wazurkar
Hi all, I have removed all the memory leak errors in the gf driver. But now when I run `ftview', it is still not loading the glyphs. I did `valgrind ftview 20 /home/parth/cmr10 .600gf' and it is showing invalid reads in the `FTC...' functions. I am not able to understand the problem. Please help.

Re: [ft-devel] Updates for gf driver.

2018-07-09 Thread Parth Wazurkar
> > >> No code. I manually called >> >> >> >> p /t buffer[0] >> >> p /t buffer[1] >> >> ... >> >> >> >> and did some paste & copy to produce the output (five bytes per >> >> lines, according to the `pitch' value). >> > >> > When I do `p /t buffer[0]' I get `$1 = 0'. >> >> Yes, this is

Re: [ft-devel] Updates for gf driver.

2018-07-09 Thread Parth Wazurkar
> > >> No code. I manually called > >> > >> p /t buffer[0] > >> p /t buffer[1] > >> ... > >> > >> and did some paste & copy to produce the output (five bytes per > >> lines, according to the `pitch' value). > > > > When I do `p /t buffer[0]' I get `$1 = 0'. > > Yes, this is correct. The

Re: [ft-devel] Updates for gf driver.

2018-07-09 Thread Parth Wazurkar
> > >> Please change the code to load a bitmap only on demand! There is > >> absolutely no reason to load all 256 bitmaps at once. > > > > Yes, but it is not loading all the 256 bitmaps at once, like > > `cmr10.600gf' has 128 glyphs, so it allocates metric values for > > these 128 glyphs and we

Re: [ft-devel] Updates for gf driver.

2018-07-09 Thread Parth Wazurkar
> > >> BTW, why are you allocating so much memory blocks? `ftexample.c' > >> asks for a single character, I thus expect that the GF driver loads > >> only a single glyph... > > > > Oh, this may be because of 128 glyph objects + 1 GF_Glyph object. > > Actually, the GF driver always allocates 256

Re: [ft-devel] Updates for gf driver.

2018-07-09 Thread Parth Wazurkar
> > > * If I display the 7 rows bit-wise, I get this: > >> > >> 00111000 > >> 0001 > >> 01101100 > >> 1010 > >>

Re: [ft-devel] Updates for gf driver.

2018-07-09 Thread Parth Wazurkar
> > > ==5604== LEAK SUMMARY: > > ==5604==definitely lost: 80 bytes in 2 blocks > > ==5604==indirectly lost: 45,388 bytes in 129 blocks > > BTW, why are you allocating so much memory blocks? `ftexample.c' > asks for a single character, I thus expect that the GF driver loads > only a single

Re: [ft-devel] Updates for gf driver.

2018-07-09 Thread Parth Wazurkar
> > [commit f7a27bf38847b4531164f042088535604d3cd2ec] > > > I am attaching the example program I am using for checking output, > > its the same `example1.c' program but with some slight modifications > > to see the num_glyphs allocated. > > Some comments. > > * Your `ftexample.c' can't work

Re: [ft-devel] Problems in GF_Glyph_Load function.

2018-07-08 Thread Parth Wazurkar
> > > I found the buglet, it was in `gf_free_font' function. Now, it is > > properly allocating the `bitmap' and glyph metrics, > > Good! > > > but `ftexample' is not showing the image of the glyph. I am not > > able to figure out why is it not showing an image. Can you point > > out some

Re: [ft-devel] Problems in GF_Glyph_Load function.

2018-07-07 Thread Parth Wazurkar
> > >> > While debugging through the `GF_Glyph_Load' function in >> >> > `gfdrivr.c', I found out that the typecasting of `FT_Face' into >> >> > `GF_Face' is not working properly. In, `GF_Face gf = >> >> > (GF_Face)FT_SIZE_FACE( size );', when I extract the `gf_glyph' >> >> > element from `gf',

Re: [ft-devel] Problems in GF_Glyph_Load function.

2018-07-07 Thread Parth Wazurkar
> > >> > While debugging through the `GF_Glyph_Load' function in > >> > `gfdrivr.c', I found out that the typecasting of `FT_Face' into > >> > `GF_Face' is not working properly. In, `GF_Face gf = > >> > (GF_Face)FT_SIZE_FACE( size );', when I extract the `gf_glyph' > >> > element from `gf', it is

Re: [ft-devel] Problems in GF_Glyph_Load function.

2018-07-06 Thread Parth Wazurkar
> > > While debugging through the `GF_Glyph_Load' function in `gfdrivr.c', > > I found out that the typecasting of `FT_Face' into `GF_Face' is not > > working properly. In, `GF_Face gf = (GF_Face)FT_SIZE_FACE( size > > );', when I extract the `gf_glyph' element from `gf', it is unable > > to

[ft-devel] Problems in GF_Glyph_Load function.

2018-07-06 Thread Parth Wazurkar
Hi all, While debugging through the `GF_Glyph_Load' function in `gfdrivr.c', I found out that the typecasting of `FT_Face' into `GF_Face' is not working properly. In, `GF_Face gf = (GF_Face)FT_SIZE_FACE( size );', when I extract the `gf_glyph' element from `gf', it is unable to return the glyph

Re: [ft-devel] Updates for gf driver.

2018-07-05 Thread Parth Wazurkar
> > Hi all, > As of now the gf driver, when run with an example program > is working[...] > Please currently test for `cmr10.600gf' file. I am also attaching it > here. > For other files with `xxx1' command after the postamble it will pass through the checks and give a segfault at the `xxx1'

[ft-devel] Possible changes on tutorial page on FT website.

2018-07-05 Thread Parth Wazurkar
Hi all, The tutorial page on FT website shows `freetype-config' script as standard for retrieving compilation flags, and `pkg-config' as an alternative solution. But as `freetype-config' has been deprecated since version 2.9, `pkg-config' can be made the standard instruction so that a newcomer

Re: [ft-devel] Differences in gf files.

2018-07-04 Thread Parth Wazurkar
> > >> `xxx' and `yyy' data can happen anywhere in a GF file; I thus suggest > >> that you parse the data and check whether they contain important > >> keywords like `fontid', `codingscheme', etc., which are very useful to > >> classify the most important METAFONT fonts like `cm' or `ec'. > >> > >

Re: [ft-devel] Differences in gf files.

2018-07-03 Thread Parth Wazurkar
> > > I found some differences in gf files `cmr10.600gf' and > > `cmr10.2602gf'. In the gftype output of `cmr10.600gf', in its > > postamble the `loc' defines a pointer to the `boc' command which > > directly points to the character's bitmap data. But, the file > > `cmr10.2602gf' and most others,

[ft-devel] Plan for resolving gf driver issues and updates.

2018-07-03 Thread Parth Wazurkar
Hi all, As now all the problems about the gf driver are clear to me I have decided to follow a plan in this week to resolve errors in gf driver. * Resolve compiler flag issues.(which I have already completed) * Add complete tracing and error handling support to gf driver. * The GF_Face_Done and

Re: [ft-devel] About errors in gf driver.

2018-07-02 Thread Parth Wazurkar
> > >> > I have found that `ftview' is not allocating > >> > `handle->current_font->num_indices' correctly for the gf driver, > >> > [...] > >> > >> As a rule of thumb: The error is most certainly not in `ftview' but > >> in your code. It is *very* unlikely that `ftview' works for all > >>

Re: [ft-devel] About errors in gf driver.

2018-07-02 Thread Parth Wazurkar
> > >> This means that your gf driver did not initialize num_glyphs in FT_Face. >> > > I checked in FTDemo_Install_Font it is properly allocating face->num_glyphs > in FT_Face. Can there be any other possibilities? > > > Most people allocate arrays in memory and initialize variables. > How many

Re: [ft-devel] About errors in gf driver.

2018-07-02 Thread Parth Wazurkar
> > [commit 11969d558505c338f29b83bbac4d572fb85b3f2b] > > Sorry for the delay in answering your questions; I was abroad without > the ability to update the git repository. > > > I have found that `ftview' is not allocating > > `handle->current_font->num_indices' correctly for the gf driver, > >

Re: [ft-devel] About errors in gf driver.

2018-07-01 Thread Parth Wazurkar
> > > I have found that `ftview' is not allocating > `handle->current_font->num_indices' correctly for the gf driver > > This means that your gf driver did not initialize num_glyphs in FT_Face. > I checked in FTDemo_Install_Font it is properly allocating face->num_glyphs in FT_Face. Can there be

[ft-devel] About errors in gf driver.

2018-07-01 Thread Parth Wazurkar
Hi all, I have found that `ftview' is not allocating `handle->current_font->num_indices' correctly for the gf driver, which is causing errors in the `Render_All' function in ftview. Please give me any idea about the possible source of this error, which can help me. Also, I think I am missing out

Re: [ft-devel] GSoC Status update

2018-06-28 Thread Parth Wazurkar
the > display > but after a while gives a segmentation fault. [...] > > When will you reach that point? > After this issue is resolved, the gf driver will be up and running. Thank you. -- Parth On Thu, Jun 28, 2018 at 3:30 PM, Parth Wazurkar wrote: > > * About the testing

Re: [ft-devel] GSoC Status update

2018-06-28 Thread Parth Wazurkar
> > > * About the testing of the gf driver, there are still some issues > > left to be sorted out. I am working on them. > > What I want to have is code in your `gf' module so that `ftview' can > display GF fonts. When will you reach that point? > I have cleaned up the code and now gf driver

[ft-devel] GSoC Status update

2018-06-26 Thread Parth Wazurkar
Hi all, * I had been working on the stream support for the gf driver for quite a while now, and I have completed it. * About the testing of the gf driver, there are still some issues left to be sorted out. I am working on them. * I have already started working on the tfm driver. I intend to work

Re: [ft-devel] Issues regarding converting READ_UINT4 function into FT.

2018-06-25 Thread Parth Wazurkar
> > > I have been working on converting the file functions in the gf > > driver into FT specific stream functions. [...] > > > > unsigned long > > gf_read_uintn(FT_Stream stream, int size) > > { > > unsigned long v; > > FT_Error error = FT_Err_Ok; > > v = 0L; > > while

[ft-devel] Issues regarding converting READ_UINT4 function into FT.

2018-06-24 Thread Parth Wazurkar
Hi all, I have been working on converting the file functions in the gf driver into FT specific stream functions. Till now I have converted most of the part and it is working fine. I am facing issues with `READ_UINT4' function which is `gf_read_uintn' with size 4. * This is the one with file

Re: [ft-devel] [Doubt] Error with STREAM_FILE function.

2018-06-15 Thread Parth Wazurkar
> > >There is not a single font driver in FreeType that uses `FT_FILE'. > >It's definitely the wrong interface. FreeType either accepts font > >files or fonts that are preloaded into a memory buffer. For the > >latter you can't use `fopen' and friends; this is another reason for > >being the

Re: [ft-devel] [Doubt] Error with STREAM_FILE function.

2018-06-13 Thread Parth Wazurkar
> > > I have added the code to my branch `parthw-wip`. > > OK, but... > > > Kindly check the output. > > ... please describe what you expect (using code lines), and what you > get. > When the gf driver enters the gf_load_font in gflib.c, if we use stream->descriptor.pointer to get the file

Re: [ft-devel] [Doubt] Error with STREAM_FILE function.

2018-06-13 Thread Parth Wazurkar
> > >> I just need the file pointer outside the stream to extract the font >> >> specific values from the font file. The problem which I am facing >> >> is that the `stream->descriptor.pointer` is not returning a correct >> >> pointer to the file and thus causing errors. I tried finding the >>

Re: [ft-devel] [Doubt] Error with STREAM_FILE function.

2018-06-13 Thread Parth Wazurkar
> > >> I just need the file pointer outside the stream to extract the font >> >> specific values from the font file. The problem which I am facing >> >> is that the `stream->descriptor.pointer` is not returning a correct >> >> pointer to the file and thus causing errors. I tried finding the >>

Re: [ft-devel] [Doubt] Error with STREAM_FILE function.

2018-06-13 Thread Parth Wazurkar
> > >> I just need the file pointer outside the stream to extract the font > >> specific values from the font file. The problem which I am facing > >> is that the `stream->descriptor.pointer` is not returning a correct > >> pointer to the file and thus causing errors. I tried finding the > >>

Re: [ft-devel] [Doubt] Error with STREAM_FILE function.

2018-06-13 Thread Parth Wazurkar
> > >> Actually I want to extract the file pointer from the input stream. > >> For this I initially used (FILE*)stream->descriptor.pointer to get > >> the pointer but it did not allocate the pointer and gave a > >> segmentation fault with fseek. > > >Don't use FreeType internals outside of the

Re: [ft-devel] [Doubt] Error with STREAM_FILE function.

2018-06-12 Thread Parth Wazurkar
> > >`STREAM_FILE' is a macro! In other words, it must *never* appear as > >an undefined symbol in the DLL. Doing `git grep STREAM_FILE', I get > > ... > > builds/unix/ftsystem.c: /* We use the macro STREAM_FILE for > convenience to extract the */ > > builds/unix/ftsystem.c:#define

[ft-devel] [Doubt] Error with STREAM_FILE function.

2018-06-12 Thread Parth Wazurkar
Hi all, The function STREAM_FILE used to extract file pointer from input stream is not working. I also tried to use stream->descriptor.pointer directly but it also gives the same error with ftview. *(Error: */home/parth/freetype-demos-deve/bin/.libs/ftview: symbol lookup error:

Re: [ft-devel] Updates for GF driver.

2018-06-07 Thread Parth Wazurkar
> > >> I have already added checks for `post_post` instruction which checks > >> for GF_ID and returns `Invalid_File_Format` if not found so, and > >> some more checks which checks for GF files' validity in > >> `gf_load_font`. Similar to what done in Vflib. Do you suggest > >> anything more? >

Re: [ft-devel] Updates for GF driver.

2018-06-07 Thread Parth Wazurkar
> > > * Run Nikhil's `docconverter.py' and `markify.py' scripts (from his >> `freetype-docs' repository) to convert all block comments into the >> `light' format. And please check whether the headers are correct – >> for example, `gflib.c' identifies itself as `gfdrivr.h'... >> > > Parth,

Re: [ft-devel] Updates for GF driver.

2018-06-07 Thread Parth Wazurkar
> > >[Please send such e-mails to the mailing list also.] > Yes. Sorry for that. Actually I was going to send this as a reply to other email but then turned to a new mail and just forgot about the cc'ing part. >> Just a heads up that I have added a base code to all the functions > >> required

Re: [ft-devel] Regarding FT_FACE_FLAG_FAST_GLYPHS

2018-06-06 Thread Parth Wazurkar
> > I also found this flag in `src/pcf/pcfread.c.' Maybe this can be removed > too? > Yeah! Thanks! -- Parth ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel

Re: [ft-devel] Regarding FT_FACE_FLAG_FAST_GLYPHS

2018-06-06 Thread Parth Wazurkar
> > >> I found that for the bdf driver in `bdfdrivr.c` the > >> `FT_FACE_FLAG_FAST_GLYPHS` flag is active for face_flags. But in > >> `freetype.h` it has been stated as `THIS FLAG IS DEPRECATED. DO NOT > >> USE OR TEST IT`. I doubt if this has been done intentionally. > > >Right, it's an

[ft-devel] Regarding FT_FACE_FLAG_FAST_GLYPHS

2018-06-05 Thread Parth Wazurkar
Hi all, I found that for the bdf driver in `bdfdrivr.c` the `FT_FACE_FLAG_FAST_GLYPHS` flag is active for face_flags. But in `freetype.h` it has been stated as `THIS FLAG IS DEPRECATED. DO NOT USE OR TEST IT`. I doubt if this has been done intentionally. Does this cause any difference? Please

Re: [ft-devel] Review commits

2018-06-02 Thread Parth Wazurkar
> > >Here they are. Note that I did a quick look only, and everything > >looks fine. > > >* Please replace all tabs with spaces. It seems that you are using an > > editor that represents a tab with two spaces: This is another reason > > to use spaces only since this is non-standard (the

[ft-devel] Review commits

2018-06-01 Thread Parth Wazurkar
Hi all, I have committed some changes in my branch `parthw-wip'. Please review it and tell me any instructions you wish to give me. P.S. Some part of the code can contain VFlib specific code please ignore that,I will be changing it soon. Thank you -- Regards Parth

Re: [ft-devel] Regarding FT_CMap_ClassRec

2018-05-22 Thread Parth Wazurkar
> > >Alexei gave you a link. To help you properly, however, we must know > >the real problem you are facing. What do you want to do? Actually I was studying the implementation of `gf_cmap_class`. While understanding cerain things I got confused with the working of CMap_Class of each driver.

  1   2   >