X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=README;h=de4639035b9888c49025672eef19822db8a86c62;hb=aa4b2d7b7b628407f6361c6b5c5a4ad2b0176877;hp=3c5095a5cdbd802b2a23d07ebfc91939a809fe13;hpb=7ec0aa7b69d32f2a545636f7dfbe31641d97d1fa;p=libsvgtiny.git diff --git a/README b/README index 3c5095a..de46390 100644 --- a/README +++ b/README @@ -58,6 +58,7 @@ following additional libraries are required: - libwapcaplet - libdom + - libcss To compile libsvgtiny, use the command @@ -160,9 +161,17 @@ returned, but the diagram is still valid up to the point of the error. The error is recorded in diagram->error_message and the line that caused it in diagram->error_line. -svgtiny_LIBXML_ERROR indicates that parsing the XML failed. The -returned diagram will contain no shapes. svgtiny_NOT_SVG means that -the XML did not contain a top-level element. +svgtiny_LIBDOM_ERROR indicates that parsing the XML failed. The +returned diagram will contain no shapes. + +svgtiny_LIBCSS_ERROR indicates that something went wrong in +libcss. Either it failed to initialize, or it failed to parse +something within the SVG, or it failed un-initialize (free +resources). Except in the last case, the returned diagram will be +empty. + +svgtiny_NOT_SVG means that the XML did not contain a top-level + element. To free memory used by a diagram, use svgtiny_free():