Commit Graph

55 Commits

Author SHA1 Message Date
pierre
17b2671213 Regenerate all Makefile's after changes related to FPCDIR checks
git-svn-id: trunk@35833 -
2017-04-18 14:15:47 +00:00
michael
d2a1e8f9de * Patch from Ondrej Pokorny, fixing range error
git-svn-id: trunk@35519 -
2017-03-04 14:24:12 +00:00
Károly Balogh
7a18cd8d38 atari: now that we have an almost complete RTL with DOS unit, we can re-enable a bunch of packages
git-svn-id: trunk@35278 -
2017-01-12 13:43:51 +00:00
michael
e342d3e15c * Not the complete fix for bug ID #31092 was committed
git-svn-id: trunk@35131 -
2016-12-14 22:21:49 +00:00
michael
d90738c784 * Fix by Graeme Geldenhuys for bug ID #31092
git-svn-id: trunk@35126 -
2016-12-14 17:42:57 +00:00
michael
9749ddc3bb * Some Range Checking fixes from Graeme Geldenhuys
git-svn-id: trunk@35094 -
2016-12-09 17:50:22 +00:00
michael
7ead78e71b * Forgot to add fpfonttextmapping.pp
git-svn-id: trunk@35090 -
2016-12-09 14:24:14 +00:00
michael
4406ec7e68 * Forgot to add subsetter font
git-svn-id: trunk@35084 -
2016-12-09 13:22:48 +00:00
michael
b7083402cf * Fix from Graeme adding Font subset embedding and underline/strikethrough
git-svn-id: trunk@35083 -
2016-12-09 12:51:06 +00:00
michael
c822e07f91 * Some minor changes:
- Added some utility methods: TPDFPage.SetLineStyle, TPDFDocument.Reset
  - Expose PDFTomm, PDFtoCM, PDFtoInches
  

git-svn-id: trunk@34804 -
2016-11-06 10:36:20 +00:00
michael
8833a6fbba * Patch from Graeme Geldenhuys to add rotation support
git-svn-id: trunk@34781 -
2016-11-04 19:59:28 +00:00
michael
2a39d8c9b7 * Added DefaultUnitOfMeasure
git-svn-id: trunk@34780 -
2016-11-03 19:55:15 +00:00
michael
9992d4b118 * SaveToStream and introduced published section
git-svn-id: trunk@34779 -
2016-11-03 19:21:39 +00:00
michael
a125d06c07 * Patches from Graeme Geldenhuys:
* Added some primitives:
      DrawPolygon (= Polyline with closing path)
      ClosePathStroke
      FillStrokePath
      FillEvenOddStrokePath
   * Origin by default now at the bottom of the page.
  

git-svn-id: trunk@34778 -
2016-11-03 08:39:26 +00:00
michael
c81b645291 * Further fixes/improvements from Graeme Geldenhuys:
pdf test app: Implements DrawPolyLine() example on page 2.
  pdf: implements Page.DrawPolyLine() method.
  pdf: TPDFLineSegment now has an option Stroke parameter. So too does Page.DrawLine().
       All part of improving the path related drawing in PDF.
  pdf: introduced a new PDFStrokePath class and Page.StrokePath method.
  pdf: removes empty constructors.
  pdf: Adds optional Stroke paramater to all CubicCurveToXXX() methods.
       This allows us more control when we do custom path based drawing.
  pdf: introduced new ResetPath() and ClosePath() methods for TPDFPage.
  pdf test app: Implement Bezier Curve drawing in Advanced Shapes page.
  pdf test app: tidy up the layout of page 2.
  pdf test app: tidy up the layout of page 1.
  pdf test app: adds a new "advanced shapes" page.
  pdf test app: Renamed field variable to a more logical name.
  pdf: Introduced CubicCurveToY() and CubicCurveToY() methods.
       The code comments explain the difference.
  pdf: introduced a new overloaded Page.CubicCurveTo() method.
  pdf: introduced a new overloaded Page.MoveTo() method.
  pdf: Gave Page.CurveToC() more meaningful parameter names.
  pdf: Gave TPDFCurveC parameters and field variables more meaningful names.
  pdf test app: updated the test app to show the Cubic Bezier curve in action.
  pdf: introduced a cubic bezier curve method to TPDFPage.
  pdf: introduced a new Page.MoveTo() method.
  pdf: implements a more consistent class hierarchy.
       Many classes take a Document as parameter in the constructor, yet
       don't descend from TPDFDocumentObject - which defines a property
       to get hold of that Document information again.
  pdf test app: updated the app to show Rounded Rectangles in action.
  pdf: introduced a new Page.DrawRoundedRect() method.
  pdf: improved the Ellipse code with a more accurate curve magic number.
  pdf: introduced a new overloaded LineSegment.Command() function.
  pdf test app: Adds parameter option to embed fonts or not.
  pdf: implements contents string/stream compression.
  ttf unit tests: resolve failing Created/Modified datetime tests.
  pdf demo: extend the sample app to draw text in a box.

git-svn-id: trunk@34767 -
2016-10-27 18:34:29 +00:00
Károly Balogh
50251a0fee atari: disabled some more packages
git-svn-id: trunk@34615 -
2016-10-04 10:14:58 +00:00
michael
5a58faa3d5 * Several fixes from Graeme Geldenhuys:
fppdf: test project page number output is now more dynamic.
  pdf+ttf: replace string constants with resource strings.
  pdf: removes the unused color parameter from TPDFDocument.AddFont().
  pdf: update "testfppdf" application due to TPDFDocument.AddFont() changes.
  pdf tests: fix failing tests due to TPDFDocument.AddFont() changes.
------------------------------------------------------------------------

git-svn-id: trunk@34563 -
2016-09-26 21:47:03 +00:00
michael
5d18c63b24 * Patch from Graeme Geldenhuys to disable embedding fonts.
git-svn-id: trunk@34543 -
2016-09-20 20:33:13 +00:00
michael
a7ddadcb37 * Fixes from Graeme Geldenhuys:
TTF: Fixes failing tests due to newly added font to the test suite.
       Font count went from 4 to 5.
  TTF: fix bug where Postscript.FontAngle had the wrong data type.
       Updated the unit tests, but extending them with Liberation Sans Italic font.

git-svn-id: trunk@34060 -
2016-07-04 06:23:24 +00:00
michael
ffe626fe6e * Patch from Graeme Geldenhuys to remove unneeded tools
git-svn-id: trunk@34037 -
2016-06-30 17:47:26 +00:00
nickysn
5306ee552b * regenerated makefiles with latest fpcmake
git-svn-id: trunk@34008 -
2016-06-18 01:00:45 +00:00
nickysn
a58dd988a4 * regenerate makefiles after the fpcmake update
git-svn-id: trunk@34002 -
2016-06-17 22:05:59 +00:00
michael
e022ba1b53 * Annotations (and HTML links) support
git-svn-id: trunk@33998 -
2016-06-16 20:14:20 +00:00
Tomas Hajny
942360289f * added short name for fcl-pdf
git-svn-id: trunk@33917 -
2016-06-05 14:37:26 +00:00
michael
a1e5c122f2 * Some updates from Graeme Geldenhuys
- pdf: updates demo with a landscape page.
  - pdf: Intenal Coordinate Matrix was not always adjusted when needed.
    eg: When the Page.Orientation was changed, PaperType was changed and so on.
  - pdf: Extra sanity check to prevent a possible AV.  
  - TTF: new FixPathDelimiters() to fix font search paths.

git-svn-id: trunk@33779 -
2016-05-24 14:29:17 +00:00
svenbarth
8a42ef764d Fix compilation of NativeNT target, patch by Karl-Michael Schindler. Fixes Mantis #30149.
rtl/nativent/Makefile.fpc:
  + add rule for ISO Extended Pascal unit
rtl/nativent/sysutils.pp: 
  * add dummy implementations of the RawByteString and UnicodeString variants of ExecuteProcess
packages/fcl-pdf/fpmake.pp:
  * don't compile fcl-pdf for NativeNT

git-svn-id: trunk@33713 -
2016-05-20 13:21:08 +00:00
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