Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-10-18 | All external drop functions handles NULL. | Sebastian Rasmussen | |
2016-10-14 | epub: Add hyperlinks. | Tor Andersson | |
2016-10-14 | Be stricter when parsing css length units. | Tor Andersson | |
2016-10-12 | css: Remove unused variables. | Tor Andersson | |
2016-10-12 | Use pool allocator when parsing CSS. | Tor Andersson | |
Fixes memory leaks when parsing throws exceptions and saves a lot of tiny mallocs for objects that have common life times. | |||
2016-10-12 | Bug 696958: parse css hex colors that are missing the '#' prefix. | Tor Andersson | |
2016-10-12 | Bug 696958: Workarounds for 'rem' and 'ch' units in epub. | Tor Andersson | |
2016-10-12 | Split fz_html into fz_html and fz_html_box for nodes. | Tor Andersson | |
Removes the need to carry fz_pool along in all boxes. | |||
2016-10-12 | Always call fz_drop_document() to drop the document. | Sebastian Rasmussen | |
2016-10-11 | Free document in fz_drop_document(), not in subclassing documents. | Sebastian Rasmussen | |
2016-10-10 | Bug 697123: epub: Adjust anchor positions using fragments. | Robin Watts | |
2016-10-10 | Simplify linked list handling in epub-doc.c | Robin Watts | |
2016-10-10 | Remove needless parameter passing. | Robin Watts | |
2016-10-10 | HTML: Keep 'Anchors' in the html box list. | Robin Watts | |
Keep them as 'FLOW' entries rather than box entries. Although they technically enclose areas of text, we only ever use them as points. Thanks to Tor for fixing this code. | |||
2016-10-10 | Use more bitfields in HTML. | Robin Watts | |
Saves 12 bytes per fz_html, and we have a lot. | |||
2016-10-10 | Change HTML agent to use bitfields rather than chars. | Robin Watts | |
Saves 8 bytes on every css_style (and we have a lot of those). | |||
2016-10-09 | html: Fix leak of buffer when opening as stream. | Sebastian Rasmussen | |
2016-10-09 | html: Add missing function pointer when opening as stream. | Sebastian Rasmussen | |
2016-10-07 | Add ctx to fz_font functions. | Robin Watts | |
2016-10-06 | Squash warnings in cluster builds. | Robin Watts | |
2016-10-06 | Bug 697182: Fix memory leak in html-layout. | Robin Watts | |
Only create a text object if we are definitely going to use it, and then take care of exceptions being thrown. | |||
2016-10-05 | Bug 697177: Avoid SEGV in Epub file. | Robin Watts | |
Thanks to Vlad Glagolev for the example file, analysis and patch. We had failed to initialise the "last break class" value, so that when we use it as an index into an array, we run the risk of crashing. The fix is simply to initialise it. By initialising it to OP we don't allow any softbreaks to be added when it's uninitialised, which feels right to me. | |||
2016-10-05 | Uncouple font shaper data from harfbuzz. | Robin Watts | |
The fz_font structure now doesn't know anything about harfbuzz at all, it merely offers an abstract 'fz_shaper_data_t' entry. | |||
2016-10-05 | Move fz_font definition to be private. | Robin Watts | |
Move the definition of fz_font to be in a private header file rather than in the public API. Add accessors for specific parts of the structure and use them as appropriate. The font flags, and the harfbuzz records remain public. This means that only 3 files now need access to the font implementation (font.c, pdf-font.c and pdf-type3.c). This may be able to be improved further in future. | |||
2016-09-26 | Fix memory leak when opening html/loading raw stream. | Sebastian Rasmussen | |
2016-09-14 | Add scripts to remove/replace 'static' from functions. | Robin Watts | |
Getting a backtrace out with missing functions makes the backtrace much less useful. Some backtrace routines (such as that used by Memento on Android) are incapable of resolving static functions. We therefore provide 2 scripts (scripts/destatic.sh and scripts/restatic.sh) that respectively remove and replace the 'static' from function definitions. The scripts do not affect "static inline" or "static const" definitions, and they are are restricted to working in the source directory (excluding source/tools), thirdparty/mujs and the platform/{java,android} directories. The transformed source should NOT be checked in. To avoid problems with clashing symbols, some functions are renamed or tweaked slightly in this patch. | |||
2016-09-08 | EPUB and XPS may only be zip archives or directories. | Sebastian Rasmussen | |
2016-07-15 | Add interface indicating if a document is reflowable. | Sebastian Rasmussen | |
2016-07-08 | Separate close and drop functionality for devices and writers. | Tor Andersson | |
Closing a device or writer may throw exceptions, but much of the foreign language bindings (JNI and JS) depend on drop to never throw an exception (exceptions in finalizers are bad). | |||
2016-06-23 | epub: Use markup language when shaping and selecting fallback fonts. | Tor Andersson | |
2016-06-17 | Use 'size_t' instead of int as appropriate. | Robin Watts | |
This silences the many warnings we get when building for x64 in windows. This does not address any of the warnings we get in thirdparty libraries - in particular harfbuzz. These look (at a quick glance) harmless though. | |||
2016-06-14 | Fix typos in various parts of the code. | Sebastian Rasmussen | |
2016-05-30 | Avoid fz_font pulling harfbuzz in. | Robin Watts | |
We store an hb_font in every font, and currently have fz_drop_font know to call harfbuzz to destroy it. This causes harfbuzz to be included even in builds that never use it. We improve this situation by storing both an hb_font, and a function pointer to destroy it within fz_font. This costs us an extra pointer per fz_font, but solves the problem. | |||
2016-05-30 | Respect FZ_ENABLE_SVG=0 in HTML/EPUB. | Tor Andersson | |
Don't try to load SVG images if SVG support is disabled. | |||
2016-05-24 | Fix issues uncovered by coverity. | Tor Andersson | |
2016-05-20 | html: Add SVG image support. | Tor Andersson | |
2016-04-26 | Improve fz_new_document | Robin Watts | |
Use a macro to make fz_new_document nicer (akin to fz_malloc_struct). | |||
2016-04-26 | fb2: Add image support. | Tor Andersson | |
2016-04-26 | fb2: Add basic FictionBook support. | Tor Andersson | |
No images. The default stylesheet is preliminary, and will need improvements. | |||
2016-04-26 | epub: Support page-break-before/after: always, left and right. | Tor Andersson | |
Does not support page-break-before/after: avoid. | |||
2016-04-26 | epub: Add matching for [att], [att=val] and [att~=val] css selectors. | Tor Andersson | |
2016-04-21 | epub: Change ul disc styles for nested lists. | Tor Andersson | |
2016-04-06 | epub: Avoid passing 'em' argument explicitly. | Tor Andersson | |
It's implicit in the 'top' box. | |||
2016-04-06 | epub: Handle font-size in nested inline elements. | Tor Andersson | |
Point to the box struct rather than its style, so we can look at its resolved em size. Also make sure to resolve em sizes for inline boxes. | |||
2016-04-06 | epub: Fix vertical-align: text-top and text-bottom. | Tor Andersson | |
2016-04-06 | epub: Skip root box during layout so we don't apply page margins twice. | Tor Andersson | |
2016-04-06 | epub: Remove debug logging printfs. | Tor Andersson | |
2016-04-06 | epub: Try to keep to one fz_text per paragraph. | Tor Andersson | |
We will need to split if the color changes, or an image is spliced in. List item bullets also get their own fz_text element. | |||
2016-04-06 | epub: Change order of arguments to fz_draw_html. | Tor Andersson | |
2016-04-05 | epub: Don't conflate dimensioned lengths with untyped numbers. | Tor Andersson | |