D13203: Add Typewriter annotation tool in Okular

Tobias Deiminger noreply at phabricator.kde.org
Sun Jul 15 17:36:47 BST 2018


tobiasdeiminger added inline comments.

INLINE COMMENTS

> tobiasdeiminger wrote in annots.cpp:182
> Poppler::TextAnnotation::setTextFont is brand new poppler API (actually not yet merged). We still want to support builds with older poppler versions. So setTextFont needs to be surrounded by some
> 
>   #ifdef HAVE_POPPLER_0_xy
>   #endif
> 
> where 0_xy is the poppler release for which we assume the API to be released. Maybe 0_67, to be optimistic.
> 
> To detect poppler version at build time, add a check_cxx_source_compiles for Poppler::TextAnnotation::setTextFont and define HAVE_POPPLER_0_67 accordingly in generators/poppler/CMakeLists.txt. Also add a cmakedefine to generators/poppler/CMakeLists.txt. You'll find existing examples for other versions if you look at these files.

Ah, meant setTextColor, not setTextFont, sorry. Btw, (how) can I edit my inline comments here in case of typos?

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D13203

To: dileepsankhla, tobiasdeiminger
Cc: ltoscano, ngraham, tobiasdeiminger, aacid, okular-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20180715/b591e0bd/attachment.html>


More information about the Okular-devel mailing list