Re: Need Help!!Getting Different glyph_locations in freetype 2.0.9 and 2.10.0
> I need help in knowing how we are getting different glyph_locations > in freetype version 2.0.9 and 2.10.0. I don't have time to analyze this in detail, but, as Lawrence observed, you *must not* rely on internal implementation details of FreeType. > I understand both are very different version initially we were using > 2.0.9 version and creating the font data for post script(.ps file) > we are using these location to write the data in post script file as > post script has limitation in writing the number of bytes and after > a certain threshold(65519 characters) it adds a new line. In general, FreeType is not suited at all as a library to manipulate PostScript files. Regardless of that, the correct way is to extract the 'loca' table with `FT_Load_Sfnt_Table` and parse the table by yourself. This is rather trivial to do, so it shouldn't be much work – and doing so makes your code future-proof. Werner
Re: Need Help!!Getting Different glyph_locations in freetype 2.0.9 and 2.10.0
On Wed, 26 Apr 2023 15:36:38 +, Jain, Ankit wrote: > Can somebody help me in getting those old values with new freetype > or some other suggestion. I think your life would be a lot easier if you stopped making assumptions about the internal implementation of FreeType. > The information contained in this message is proprietary and/or > confidential. No it isn’t.
RE: Need Help!!Getting Different glyph_locations in freetype 2.0.9 and 2.10.0
Hi All, In file ttpload.c there is a function tt_face_load_loca and below line filling those values. if ( FT_FRAME_EXTRACT( table_len, face->glyph_locations ) ). I don't know how to fix this and looking for further information/assistance. Appreciate all the help!!. Thanks, Ankit Jain -Original Message- From: Jain, Ankit Sent: Thursday, April 27, 2023 9:57 AM To: Lawrence D'Oliveiro ; freetype@nongnu.org Subject: RE: Need Help!!Getting Different glyph_locations in freetype 2.0.9 and 2.10.0 Yes, these are consumed by printers. Thanks Ankit Jain -Original Message- From: freetype-bounces+ankit.jain3=fisglobal@nongnu.org On Behalf Of Lawrence D'Oliveiro Sent: Thursday, April 27, 2023 4:46 AM To: freetype@nongnu.org Subject: Re: Need Help!!Getting Different glyph_locations in freetype 2.0.9 and 2.10.0 On Wed, 26 Apr 2023 13:15:39 +, Jain, Ankit wrote: > ... we are using these location > to write the data in post script file as post script has limitation in > writing the number of bytes ... Do you have to write PostScript files? How are these being consumed? By a printer? By another graphics app? There may be a way to avoid PostScript. The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.
RE: Need Help!!Getting Different glyph_locations in freetype 2.0.9 and 2.10.0
Yes, these are consumed by printers. Thanks Ankit Jain -Original Message- From: freetype-bounces+ankit.jain3=fisglobal@nongnu.org On Behalf Of Lawrence D'Oliveiro Sent: Thursday, April 27, 2023 4:46 AM To: freetype@nongnu.org Subject: Re: Need Help!!Getting Different glyph_locations in freetype 2.0.9 and 2.10.0 On Wed, 26 Apr 2023 13:15:39 +, Jain, Ankit wrote: > ... we are using these location > to write the data in post script file as post script has limitation in > writing the number of bytes ... Do you have to write PostScript files? How are these being consumed? By a printer? By another graphics app? There may be a way to avoid PostScript. The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.
Re: Need Help!!Getting Different glyph_locations in freetype 2.0.9 and 2.10.0
On Wed, 26 Apr 2023 13:15:39 +, Jain, Ankit wrote: > ... we are using these location > to write the data in post script file as post script has limitation > in writing the number of bytes ... Do you have to write PostScript files? How are these being consumed? By a printer? By another graphics app? There may be a way to avoid PostScript.
Re: Need Help!!Getting Different glyph_locations in freetype 2.0.9 and 2.10.0
Read tt_face_get_location() in src/truetype/ttpload.c On 2023/04/27 0:36, Jain, Ankit wrote: Thank you mpsuzuki .Yes, these are types that changed over the time but I tried simply changing to FT_Byte* to FT_Long* to newer version but that doesn't help. Can somebody help me in getting those old values with new freetype or some other suggestion. Thanks, Ankit Jain -Original Message- From: suzuki toshiya Sent: Wednesday, April 26, 2023 7:51 PM To: freetype@nongnu.org Cc: Jain, Ankit Subject: Re: Need Help!!Getting Different glyph_locations in freetype 2.0.9 and 2.10.0 The difference might be FT_Long* versus FT_Byte*. Regards, mpsuzuki On 2023/04/26 22:15, Jain, Ankit wrote: Hi, I need help in knowing how we are getting different glyph_locations in freetype version 2.0.9 and 2.10.0. I understand both are very different version initially we were using 2.0.9 version and creating the font data for post script(.ps file) we are using these location to write the data in post script file as post script has limitation in writing the number of bytes and after a certain threshold(65519 characters) it adds a new line. The threshold was getting in hit in older version and output was fine but after upgrades the locations are not what we were getting in 2.0.9. Please find attached source code and glyph_location from both the versions. I am using arial font for testing. Appreciate help any other pointers to move further from here. Thanks, Ankit Jain The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.
RE: Need Help!!Getting Different glyph_locations in freetype 2.0.9 and 2.10.0
Thank you mpsuzuki .Yes, these are types that changed over the time but I tried simply changing to FT_Byte* to FT_Long* to newer version but that doesn't help. Can somebody help me in getting those old values with new freetype or some other suggestion. Thanks, Ankit Jain -Original Message- From: suzuki toshiya Sent: Wednesday, April 26, 2023 7:51 PM To: freetype@nongnu.org Cc: Jain, Ankit Subject: Re: Need Help!!Getting Different glyph_locations in freetype 2.0.9 and 2.10.0 The difference might be FT_Long* versus FT_Byte*. Regards, mpsuzuki On 2023/04/26 22:15, Jain, Ankit wrote: > Hi, > > I need help in knowing how we are getting different glyph_locations in > freetype version 2.0.9 and 2.10.0. > I understand both are very different version initially we were using > 2.0.9 version and creating the font data for post script(.ps file) we are > using these location to write the data in post script file as post script has > limitation in writing the number of bytes and after a certain threshold(65519 > characters) it adds a new line. > The threshold was getting in hit in older version and output was fine but > after upgrades the locations are not what we were getting in 2.0.9. > > Please find attached source code and glyph_location from both the versions. I > am using arial font for testing. > > Appreciate help any other pointers to move further from here. > > Thanks, > Ankit Jain > > The information contained in this message is proprietary and/or confidential. > If you are not the intended recipient, please: (i) delete the message and all > copies; (ii) do not disclose, distribute or use the message in any manner; > and (iii) notify the sender immediately. In addition, please be aware that > any message addressed to our domain is subject to archiving and review by > persons other than the intended recipient. Thank you. The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.
Re: Need Help!!Getting Different glyph_locations in freetype 2.0.9 and 2.10.0
The difference might be FT_Long* versus FT_Byte*. Regards, mpsuzuki On 2023/04/26 22:15, Jain, Ankit wrote: Hi, I need help in knowing how we are getting different glyph_locations in freetype version 2.0.9 and 2.10.0. I understand both are very different version initially we were using 2.0.9 version and creating the font data for post script(.ps file) we are using these location to write the data in post script file as post script has limitation in writing the number of bytes and after a certain threshold(65519 characters) it adds a new line. The threshold was getting in hit in older version and output was fine but after upgrades the locations are not what we were getting in 2.0.9. Please find attached source code and glyph_location from both the versions. I am using arial font for testing. Appreciate help any other pointers to move further from here. Thanks, Ankit Jain The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.