61
panwac
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/29 11:14

  • panwac

  • Just popping in

  • Posts: 62

  • Since: 2005/11/12


Quote:

black_beard wrote:
Thank you @panwac, just forget my part.
The download has been updated, version tcpdf_for_xoops: 1.01

It was a pleasure...
In ver. 1.01 I can see, the line no 26 in /Frameworks/tcpdf/config/tcpdf_config.php is double.

Quote:
define ('K_PATH_MAIN', XOOPS_ROOT_PATH.'/Frameworks/tcpdf/'); //panwac
define ('K_PATH_URL', XOOPS_URL.'/Frameworks/tcpdf/');
define ('K_PATH_URL', XOOPS_URL.'/Frameworks/tcpdf/');

should be replaced with
Quote:
define ('K_PATH_MAIN', XOOPS_ROOT_PATH.'/Frameworks/tcpdf/');
define ('K_PATH_URL', XOOPS_URL.'/Frameworks/tcpdf/');


And in my opinion, that's better to have default config file with the definitions of utf-fonts, not others.
So, I suggest to change in tcpdf_config.php lines from 47 to 66, e.g.:
Quote:
define ('PDF_FONT_NAME_SLOGAN', 'cid0cs');
define ('PDF_FONT_STYLE_SLOGAN', 'B');
define ('PDF_FONT_SIZE_SLOGAN', '8');
define ('PDF_FONT_NAME_TITLE', 'cid0cs');
define ('PDF_FONT_STYLE_TITLE', 'B');
define ('PDF_FONT_SIZE_TITLE', '12');
define ('PDF_FONT_NAME_SUB', 'cid0cs');
define ('PDF_FONT_STYLE_SUB', 'I');
define ('PDF_FONT_SIZE_SUB', '8');
define ('PDF_FONT_NAME_SUBSUB', 'cid0cs');
define ('PDF_FONT_STYLE_SUBSUB', '');
define ('PDF_FONT_SIZE_SUBSUB', '6');
define ('PDF_FONT_NAME_MAIN', 'cid0cs');
define ('PDF_FONT_SIZE_MAIN', 10);
define ('PDF_FONT_STYLE_MAIN','');
define ('PDF_FONT_NAME_DATA', 'cid0cs');
define ('PDF_FONT_STYLE_DATA','');
define ('PDF_FONT_SIZE_DATA', 8);
define ('PDF_FONT_MONOSPACED', 'cid0cs');

with
Quote:
define ('PDF_FONT_NAME_SLOGAN', 'dejavusansb');
define ('PDF_FONT_STYLE_SLOGAN', '');
define ('PDF_FONT_SIZE_SLOGAN', '8');
define ('PDF_FONT_NAME_TITLE', 'dejavusansb');
define ('PDF_FONT_STYLE_TITLE', '');
define ('PDF_FONT_SIZE_TITLE', '12');
define ('PDF_FONT_NAME_SUB', 'dejavusansi');
define ('PDF_FONT_STYLE_SUB', '');
define ('PDF_FONT_SIZE_SUB', '8');
define ('PDF_FONT_NAME_SUBSUB', 'dejavusans');
define ('PDF_FONT_STYLE_SUBSUB', '');
define ('PDF_FONT_SIZE_SUBSUB', '6');
define ('PDF_FONT_NAME_MAIN', 'dejavusans');
define ('PDF_FONT_SIZE_MAIN', 10);
define ('PDF_FONT_STYLE_MAIN','');
define ('PDF_FONT_NAME_DATA', 'dejavusansi');
define ('PDF_FONT_STYLE_DATA','');
define ('PDF_FONT_SIZE_DATA', 8);
define ('PDF_FONT_MONOSPACED', 'dejavusans');


62
black_beard
Re: News 1.67 Final released for XOOPS 2.5.5

thank you for your participation, changes were made​​, download here

63
chnwalkman
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/30 5:02

  • chnwalkman

  • Just popping in

  • Posts: 35

  • Since: 2004/8/25


hi,

For Chinese, if change lines 47~66 fonts to "dejavusans" in the tcpdf_config.php, then Chinese characters are displayed as "□□" in the generated pdf. Only changed to "cid0cs" be normal.

Thank you all.

64
black_beard
Re: News 1.67 Final released for XOOPS 2.5.5

for chinese simplified character use font cid0cs
for Chinese (Taiwan) character use font cid0ct
for japan character use font cid0jp
for korean character use font cid0kr
for arabian character use font aealarabiya

Changes are made in the file ./Frameworks/tcpdf/config/tcpdf_config.php, between line 47 and line 66

65
Mamba
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/30 8:53

  • Mamba

  • Moderator

  • Posts: 11394

  • Since: 2004/4/23


Maybe we can remove all the fonts that are not needed and leave only the basic ones, so we can make the download file smaller?

If users want to download some "fancy" fonts, they can do it then individually.

What do you think?
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

66
black_beard
Re: News 1.67 Final released for XOOPS 2.5.5

hello mamba
do we consider that the Chinese, Korean, Arabic, Japanese fonts are basic fonts or optional fonts ?

67
irmtfan
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/30 10:17

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


I previously suggest a font manager plugin in xoops core.
https://sourceforge.net/tracker/?func=detail&aid=3543966&group_id=41586&atid=430843

IMO the structure should be like this:
htdocs/Frameworks/tcpdf/fonts OR ???? for basic fonts

htdocs/language/_LOCAL_LANG/fonts for local parties

so basic fonts can be read just for latin territories and local fonts can be added by local parties.
could you change the current tcpdf to read fonts from local language?
I mean in Frameworks/tcpdf/config/tcpdf_config.php it reads the font from local languages.


68
Roby73
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/30 13:38

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


I try last version of tcpdf.
I think is necessary convert all module with this, and remove all personal make pdf.

For example makepdf.php of the newbb 4.3 primarily.



69
btesec
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/30 14:48

  • btesec

  • Friend of XOOPS

  • Posts: 623

  • Since: 2007/2/20


Quote:

Roby73 wrote:
I try last version of tcpdf.
I think is necessary convert all module with this, and remove all personal make pdf.

For example makepdf.php of the newbb 4.3 primarily.




I do think standardization would be great.

70
btesec
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/30 17:35

  • btesec

  • Friend of XOOPS

  • Posts: 623

  • Since: 2007/2/20


I noticed that the repository has a new file for Xoops core named xoops-2.5.5-20120718.zip

may I suggest that a news post be created so everyone knows about it. Maybe tell us what are the changes.

Login

Who's Online

221 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 221


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits