Re: HMG_HPDF - Export to PDF made easy...
Posted: Tue Mar 13, 2018 1:52 pm
Exclusive forum for HMG, a Free / Open Source xBase WIN32/64 Bits / GUI Development System
http://www.hmgforum.com/
+1Rathinagiri wrote: ↑Tue Mar 13, 2018 1:50 pm Wonderful!
EDward, Can you make it work for unicode encoding also? Especially Indian languages?
Hi, Rathi.Rathinagiri wrote: ↑Tue Mar 13, 2018 1:50 pm EDward, Can you make it work for unicode encoding also? Especially Indian languages?
Hi Esgici,
You can found the following description in the Harbour changelog also:/*----------------------------------------------------------------------*
* *
* HaruLib (x)Harbour Wrappers *
* . *
* http://www.libharu.org/ *
* http://sourceforge.net/projects/libharu/ *
* *
* Pritpal Bedi <pritpal@hotmail.com> *
* *
*----------------------------------------------------------------------*/
2008-05-18 09:21 UTC+0100 Viktor Szakats (harbour syenar.net)
* contrib/hbhpdf/harupdf.c
! Fixed all MSVC warnings. Now builds cleanly.
2008-05-18 08:52 UTC+0100 Viktor Szakats (harbour syenar.net)
+ contrib/hbhpdf/Makefile
+ contrib/hbhpdf/make_b32.bat
+ contrib/hbhpdf/make_vc.bat
+ contrib/hbhpdf/make_gcc.sh
+ contrib/hbhpdf/common.mak
+ contrib/hbhpdf/tests/bld_b32.bat
+ contrib/hbhpdf/tests/bld_vc.bat
+ Added build/make files.
; Please test GNU make files.
* contrib/make_b32_all.bat
* contrib/make_gcc_all.sh
* contrib/make_vc_all.bat
+ Added hbhpdf to 'all' make files.
(not yet to GNU make files though)
- contrib/hbhpdf/tests/<data files>
+ contrib/hbhpdf/tests/files/<data files>
* Data files needed for test app moved
to a subdir.
* contrib/hbhpdf/tests/harupdf.prg
! Absolute paths changed to relative ones
(for both input and output ones).
! NumToHex() -> hb_NumToHex()
+ hbct added to lib list because test program
uses SIN()/COS()/TAN() from it.
- contrib/hbhpdf/tests/harupdf.ch
+ contrib/hbhpdf/harupdf.ch
* Moved to main dir.
- contrib/hbhpdf/hpdf.h
- Removed original libharu header. This
will be picked up from the package dir,
along with the rest of the .h files.
* contrib/hbhpdf/harupdf.ch
+ Added self-guard.
* contrib/hbhpdf/harupdf.c
! Fixed a few BCC warnings. It now builds cleanly.
; NOTE: There are a lot MSVC casting warnings and errors left.
; Many thanks for this contrib to Pritpal Bedi.
2008-05-17 18:45 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com)
+ harbour/contrib/hbhpdf
+ harbour/contrib/hbhpdf/harupdf.c
+ harbour/contrib/hbhpdf/hpdf.h
Initial upload of wrappers for HaruPDF Library (http://sourceforge.net/projects/libharu/).
+ harbour/contrib/hbhpdf/tests
+ harbour/contrib/hbhpdf/tests/harupdf.prg
+ harbour/contrib/hbhpdf/tests/harupdf.ch
Test program.
Hi Marek.mol wrote: ↑Sun Mar 04, 2018 7:29 am There is Windows function EnumFontFamiliesEx which enumerates installed fonts with its options.
But, I can't find if there is a font filename for font name.
HMG sources contains call to older version of the function EnumFontFamilies (this one is for compatibility wit 16-bit versions).
c_controlmisc.c file contains definition of EnumFonts.
EnumFontFamilies returns LogFont structure:It is desciped on https://msdn.microsoft.com/pl-pl/librar ... s.85).aspx pageCode: Select all
typedef struct tagLOGFONT { LONG lfHeight; LONG lfWidth; LONG lfEscapement; LONG lfOrientation; LONG lfWeight; BYTE lfItalic; BYTE lfUnderline; BYTE lfStrikeOut; BYTE lfCharSet; BYTE lfOutPrecision; BYTE lfClipPrecision; BYTE lfQuality; BYTE lfPitchAndFamily; TCHAR lfFaceName[LF_FACESIZE]; } LOGFONT, *PLOGFONT;
Some fonts have only English names, some of them can have English and native (Polish, Chinese ) names too.
I think Claudio Soto should know sth. about it. (His name is places as comment in sources )