Commit Graph

229 Commits

Author SHA1 Message Date
michael
3d479ed732 * Applied patch from Ondrej Pokorny, bug ID #30090
git-svn-id: trunk@33632 -
2016-05-03 09:11:02 +00:00
michael
51cdce510c * Renamed pixel size DrawImage to DrawImageRawSize
git-svn-id: trunk@33629 -
2016-05-03 07:08:47 +00:00
michael
8416517b14 * More fixes from Graeme Geldenhuys:
pdf tests: extended Page.DrawImage (pixels) test with different UnitOfMeasure values.
   pdf tests: Implements Page.DrawImage (UnitsOfMeasure) unit tests.
   pdf: Fixed DrawImage() bug detected by unit tests.
   pdf: fixed failing test due to varying string types.

git-svn-id: trunk@33573 -
2016-04-29 14:12:22 +00:00
michael
141a24e29c * Some improvements and reworkings by Graeme Geldenhuys
pdf: Renamed DrawImage() parameters to more clearly state the values are in pixels.
   pdf: convenience function to return a TPDFCoord data type.
   pdf: method implementation signature now matches interface section.
   pdf: Implements new overload DrawImage that takes UnitOfMeasure Width & Height parameters.
   pdf: sample: Modified the Image page to some usage of new overloaded DrawImage()
   ttf: TextWidth() parameters are now const parameters.
   ttf: Implemented a new TextHeight() method for the FontCacheItem class.

git-svn-id: trunk@33566 -
2016-04-28 16:54:25 +00:00
michael
60382b990e * Patch from Ondrej to fix sharing mode when loading fonts (bug ID 30070)
git-svn-id: trunk@33564 -
2016-04-27 16:02:12 +00:00
michael
5ac352bc3c * Some reworking by Graeme Geldenhuys:
ttf: renamed SearchForFont() to SearchForFonts(). Plural makes more sense.
  ttf: extra sanity check before calling SearchForFont()
  ttf: new AssignFontList() method introduced.
       This populates AStrings with a list of found PostScript names. 
       Useful for fpReport and probably a visual report designer too.
  ttf: new overloaded Find() method, and Find-by-PostScript name.
       FamilyName is normally the base font name only. 
       PostScriptName is the base name plus an attribute suffix. 
       eg: Calibri vs Calibri-Bold

git-svn-id: trunk@33563 -
2016-04-27 15:34:00 +00:00
michael
bae53fda21 * Some fixes from Graeme Geldenhuys (Bug ID 30038):
- pdf unittests: Minor improvement to PDFString.TestWrite()
  - pdf: fixes FPC bug ID #30038 and implements TPDFUTF8String unit tests.
  - pdf test: Extended the SimpleText() text output to show more symbols

git-svn-id: trunk@33543 -
2016-04-22 11:15:11 +00:00
michael
ef564491b2 * Fixes from Graeme Geldenhuys for bug ID #30006 and bug ID #30008:
--------------------------------
  * pdf unittests: fixes failing test after fpPDF changes, plus newtest added.
  * pdf: fixes failing test due to recent changes in fpPDF.
  * pdf tests: new test for new behaviour.
  * pdf: Applies patch from Mantis 30006 - and replaced bitmasks with Sets.
  * pdf tests: Updates the README file with exact font details used by the tests.
  * ttf: fixes debug output directory.
  * pdf: FPC Mantis BugID 30008: fpTTF: wrong Ascender/Descender calculation
  * pdf: fix bug where return value was never set.
  * pdf: fixes compiler hint about uninitialised variables being used.
  * pdf unittests: fixes memory leak in one test.
  * pdf unittests: fixes compiler hint about unused units in uses  clause.

git-svn-id: trunk@33535 -
2016-04-19 07:10:59 +00:00
michael
4ca4697b6b * Patch from Ondrej Pokorny to make some setter methods virtual (bug ID 30011)
git-svn-id: trunk@33499 -
2016-04-14 17:15:51 +00:00
michael
ab05389612 * Remove debug statement
git-svn-id: trunk@33497 -
2016-04-13 15:57:23 +00:00
michael
e662e49cf9 * Some fixes to FPPDF:
- fppdf: Fixes support for FPC 2.6.4
  - fppdf: Fixes bug where PDFName values were not escaped.
          Spaces for example are not allowed in PDFName elements.
  - fppdf: Removes usage of TFriendTTFileInfo class. Not needed any more.

git-svn-id: trunk@33495 -
2016-04-13 11:39:58 +00:00
michael
2282996817 * Add command-line options to enable image compression and JPEG image support
git-svn-id: trunk@33485 -
2016-04-11 19:08:21 +00:00
michael
591f3dc879 * Fix bug #29989, add compression and JPEG image support (by Ondrej Pokorny)
git-svn-id: trunk@33484 -
2016-04-11 19:07:27 +00:00
michael
b46969cfa8 * Several improvements in PDF generator:
- Removed TTextDictionary class.
 - adds code comments and fixes a spelling mistake.
 - Removes TFontDef definition - we don't need it any more.
 - refactored TPDFDocument Text API to overloaded methods CreateText()
 - test: update test project to reflect the latest API changes.
 - unittests: update tests to match recent API changes.

git-svn-id: trunk@33483 -
2016-04-11 18:27:34 +00:00
michael
b30a809fdd * Added ttfdump tool
git-svn-id: trunk@33482 -
2016-04-11 18:26:23 +00:00
michael
fb87b6bc9c * Patch from Ondrej Pokorny (bug ID 29987)
- utf8string-aware TFPFontCacheItem.TextWidth (utf16 surrogate pairs aren't supported though)
  - Cached result for TFPFontCacheItem.GetFontData. 
  - Fix for range check error in TTFFileInfo.PrepareFontDefinition.

git-svn-id: trunk@33468 -
2016-04-10 10:32:54 +00:00
michael
1a4dd1b9b2 * Fixed typo in russian message (Ondrej Pokorny)
git-svn-id: trunk@33456 -
2016-04-09 08:40:01 +00:00
michael
897547b115 * More fixes from Graeme, hopefully UTF16 works now fully
git-svn-id: trunk@33453 -
2016-04-08 18:16:46 +00:00
michael
438995b249 * Fix some hints
git-svn-id: trunk@33431 -
2016-04-06 21:26:15 +00:00
michael
3c9f25c987 * Some Fixes/Improvements from Graeme
git-svn-id: trunk@33428 -
2016-04-06 17:22:37 +00:00
michael
18447a39c4 * Fix font encoding and unicode issues, rework tests to work with val()
git-svn-id: trunk@33401 -
2016-03-31 13:54:31 +00:00
michael
be3aa9d6c2 * Fix use of formatfloat
git-svn-id: trunk@33264 -
2016-03-18 07:30:04 +00:00
michael
5fcc032b98 * Fix wrong start index which appeared in loop optimization
git-svn-id: trunk@33255 -
2016-03-15 07:37:49 +00:00
michael
2717fd67d6 * Patch from Gilson Nunes, Silvio Clecio to fix unsafe typecast, improved loop logic (Bug ID 29812)
git-svn-id: trunk@33215 -
2016-03-11 07:36:27 +00:00
michael
940244cb12 * Remove msdos target, not all dependencies are satisfied
git-svn-id: trunk@33212 -
2016-03-09 20:45:26 +00:00
michael
3ee5661ff1 * Fix 2.6.4 compilation
git-svn-id: trunk@33176 -
2016-03-06 10:36:53 +00:00
michael
94f8db4951 * Patch from Silvio Clecio to remove some hints/warnings
git-svn-id: trunk@33175 -
2016-03-06 10:34:48 +00:00
michael
edcc251c76 * Added file attachments to possible enhancements
git-svn-id: trunk@33163 -
2016-03-05 18:22:23 +00:00
michael
5eb691f2c9 * Added fcl-pdf
git-svn-id: trunk@33162 -
2016-03-05 17:13:07 +00:00