Skip to content
  • Tobias Deiminger's avatar
    More review fixes · d4b4be23
    Tobias Deiminger authored and Albert Astals Cid's avatar Albert Astals Cid committed
    Text color is indicated by nonstroking color in graphics state
    	Assumption: Text rendering mode is 'fill'.
    
    Increase color precision for lossless roundtrip of 16 bit integers
    	Our API takes QColor from user. We want to support a lossless roundtrip
    	of QColor (16 bit per channel internally) through document save and
    	load, and empirically found .5f is best match.
    
    Check only .5f case of color channel roundtrip. Include 65535.
    	We check if precision == 5 is sufficient, and fail if not. We know that
    	precision < 5 will never work, because target set contains less numbers
    	than uint16 range.
    
    Use smart pointer in textFont and textColor
    
    Add test for CMYK QColor roundtrip
    
    Support QColor::Cmyk to AnnotColor::colorCMYK conversion
    
    Add simple test for font size. Fix actual/expected args.
    
    Model font name as class Object, type objName
    	Take into account that ISO 32000 says Tf operand is always an object of
    	PDF type "name". Further benefit: class Object introduces ownership
    	semantcis.
    
    Use more std::unique_ptr and fix some coding syle
    	Some places assumed ownership implicitely. Make it more explicit.
    
    Move parse/constructAppearanceString into DefaultAppearance
    	We gain cohesion and automatic memory management.
    
    Fix minor styling issues
    
    Use std::make_unique from C++14
    d4b4be23