Re: [ft-devel] How to determine if horizontal hinting is happening?
> I am working on a Chrome bug (crbug.com/740385) related to subpixel > positioning and hinting. > > There is currently an issue where glyphs do not get positioned > correctly in all cases, and to solve this problem I need to enable > subpixel positioning. > > This works, except when horizontal hinting is enabled ("full > hinting" in xft enables this). In this case, letters get smeared > badly. > > https://www.freetype.org/freetype2/docs/glyphs/glyphs-3.html > suggests that I should do subpixel positioning if I am not hinting > horizontally, which matches with my understanding. > > Therefore, I would like to programatically determine if horizontal > hinting is happening and base the subpixel positioning decision on > this information. But I have not been able to figure out how to do > this. Is there a way that avoids needing to know the internals of > the engines? Well, the decision whether you are using `full hinting' or not is given by the load flags used in `FT_Load_Glyph'. This is *external* information given by Chrome itself! FreeType overrides this only for the very small class of `tricky' fonts which don't display correctly otherwise; this can be tested with `FT_IS_TRICKY'. Am I missing something? Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Contribution to freetype
> I successfully compiled the example in this way: > $gcc example1.c -I/home/parth/anaconda3/include/freetype2 \ > -L/home/parth/anaconda3/lib -lfreetype -lm > > But, when I run $./a.out font sample-text for checking output it > shows Segmentation fault (core dumped). Please help. The demo programs leave out all error checking for simplicity. You have to take care of that by yourself. I strongly suggest that you get acquainted with (a) compiling and linking in general, and (b) how to use a debugger like `gdb' or a GUI front-end to it to identify the source code location where the program crashed. However, this mailing list is not the right place to do that, sorry. Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Contribution to freetype
I successfully compiled the example in this way: $gcc example1.c -I/home/parth/anaconda3/include/freetype2 -L/home/parth/anaconda3/lib -lfreetype -lm But, when I run $./a.out font sample-text for checking output it shows Segmentation fault (core dumped). Please help. On Fri, Feb 16, 2018 at 3:28 AM, Werner LEMBERGwrote: > > > When I try to compile the example given on the website after > > installing the library like this: > > > > $gcc example1.c -I/home/parth/anaconda3/include/freetype2 -lm -lfreetype > > > > I get the following error > > > > *:* > > /usr/bin/ld: cannot find -lfreetype > > collect2: error: ld returned 1 exit status > > > > I searched on the internet and also the mail archives but could not > > find a solution. Please help. > > You are missing an -L flag to specify the directory where libfreetype > is located. > > > Werner > ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
[ft-devel] How to determine if horizontal hinting is happening?
Hi, I am working on a Chrome bug (crbug.com/740385) related to subpixel positioning and hinting. There is currently an issue where glyphs do not get positioned correctly in all cases, and to solve this problem I need to enable subpixel positioning. This works, except when horizontal hinting is enabled ("full hinting" in xft enables this). In this case, letters get smeared badly. https://www.freetype.org/freetype2/docs/glyphs/glyphs-3.html suggests that I should do subpixel positioning if I am not hinting horizontally, which matches with my understanding. Therefore, I would like to programatically determine if horizontal hinting is happening and base the subpixel positioning decision on this information. But I have not been able to figure out how to do this. Is there a way that avoids needing to know the internals of the engines? Thanks, Adam ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Contribution to freetype
> When I try to compile the example given on the website after > installing the library like this: > > $gcc example1.c -I/home/parth/anaconda3/include/freetype2 -lm -lfreetype > > I get the following error > > *:* > /usr/bin/ld: cannot find -lfreetype > collect2: error: ld returned 1 exit status > > I searched on the internet and also the mail archives but could not > find a solution. Please help. You are missing an -L flag to specify the directory where libfreetype is located. Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Contribution to freetype
When I try to compile the example given on the website after installing the library like this: $gcc example1.c -I/home/parth/anaconda3/include/freetype2 -lm -lfreetype I get the following error *:* /usr/bin/ld: cannot find -lfreetype collect2: error: ld returned 1 exit status I searched on the internet and also the mail archives but could not find a solution. Please help. Regards Parth On Wed, Feb 14, 2018 at 3:14 AM, Werner LEMBERGwrote: > > > My name is Parth Wazurkar. I am a sophomore student at Indian > > Institute Of Information Technology Nagpur, India studying Computer > > Science and Engineering. I am interested in working for > > freetype. How should I start contributing? Please help. > > Parth, > > > please look at FreeType's GSoC page > > https://www.freetype.org/gsoc.html > > > Werner > ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Convert markdown files to html documents.
Thank you sir, I will do that. I will be proposing the ideas within 1 week. On 15-Feb-2018 2:56 PM, "Werner LEMBERG"wrote: > > Hello Bhaskar, > > > > [...] I want to contribute in your project of conversion of markdown > > files to html documents as I have done some work on python for > > making a website where the use of python and markdown is used. My > > GitHub account link is :-(https://github.com/chiku07) Please look > > upon the matter sir. > > thanks for your interest. What we need is a proposal that gives > details and ideas what you want to do and how. And please look up the > mailing list archive also for more information on such a conversion, > in particular what we want to achieve. > > > Werner > ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Convert markdown files to html documents.
Hello Bhaskar, > [...] I want to contribute in your project of conversion of markdown > files to html documents as I have done some work on python for > making a website where the use of python and markdown is used. My > GitHub account link is :-(https://github.com/chiku07) Please look > upon the matter sir. thanks for your interest. What we need is a proposal that gives details and ideas what you want to do and how. And please look up the mailing list archive also for more information on such a conversion, in particular what we want to achieve. Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
[ft-devel] Convert markdown files to html documents.
Dear sir, Hello sir, my name is Bhaskar Bhushan an engineering student of electronic branch and I want to contribute in your project of conversion of markdown files to html documents as I have done some work on python for making a website where the use of python and markdown is used. My GitHub account link is :-(https://github.com/chiku07) Please look upon the matter sir. ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel