Skip to content

Commit a349139

Browse files
committed
Write WMode
1 parent b01b745 commit a349139

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/render/text.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use crate::Result;
88
use pdf_writer::types::{
99
CidFontType, FontFlags, SystemInfo, TextRenderingMode, UnicodeCmap,
1010
};
11+
use pdf_writer::writers::WMode;
1112
use pdf_writer::{Chunk, Content, Filter, Finish, Name, Ref, Str};
1213
use siphasher::sip128::{Hasher128, SipHasher13};
1314
use std::collections::{BTreeMap, HashMap};
@@ -158,7 +159,7 @@ pub fn write_font(
158159
font_descriptor.finish();
159160

160161
let cmap = create_cmap(glyph_set, glyph_remapper).ok_or(SubsetError(font.id))?;
161-
chunk.cmap(cmap_ref, &cmap.finish());
162+
chunk.cmap(cmap_ref, &cmap.finish()).writing_mode(WMode::Horizontal);
162163

163164
// Subset and write the font's bytes.
164165
let data = subset_font(&font.face_data, font.face_index, glyph_remapper, font.id)?;

0 commit comments

Comments
 (0)