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 -
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 -
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 -
- 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 -
--------------------------------
* 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 -
- 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 -
- 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 -
- 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 -