Skip to content

Commit

Permalink
FootnoteBodyLayoutManager class updated for footnote chars rotation, m…
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Jan 17, 2025
1 parent 3f99478 commit 1b53e41
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

import org.apache.fop.area.Area;
import org.apache.fop.fo.flow.FootnoteBody;
import org.apache.fop.fo.pagination.Region;
import org.apache.fop.traits.WritingMode;

/**
* Layout manager for footnote bodies.
Expand All @@ -43,6 +45,8 @@ public FootnoteBodyLayoutManager(FootnoteBody body) {
@Override
public List getNextKnuthElements(LayoutContext context, int alignment) {
if (knuthElements == null) {
// added for fixing https://github.com/metanorma/xmlgraphics-fop/issues/37
context.setWritingMode(getCurrentPage().getSimplePageMaster().getRegion(Region.FO_REGION_BODY).getWritingMode());
knuthElements = super.getNextKnuthElements(context, alignment);
}
return knuthElements;
Expand Down

0 comments on commit 1b53e41

Please sign in to comment.