Render hyperlinks with hyperref green colour
This commit is contained in:
1 parent
a8b20563fb
commit
09781d40e9
12 files changed
+158
-11
No files matched your search
@@ -201,6 +201,10 @@ pub struct PageStyleOverride {
|
||||
/// Marker character used by `\thepage` inside header/footer runs; the page
|
||||
/// renderer substitutes the concrete page number before measuring and painting.
|
||||
/// Private-use marker for a dotted leader in generated contents lines.
|
||||
/// Private-use marker toggling hyperlink paint for the following glyphs.
|
||||
pub const LINK_START_MARKER: char = '\u{F3000}';
|
||||
pub const LINK_END_MARKER: char = '\u{F3001}';
|
||||
|
||||
pub const CONTENTS_LEADER_MARKER: char = '\u{F6000}';
|
||||
|
||||
pub const PAGE_NUMBER_MARKER: char = '\u{F5000}';
|
||||
@@ -413,6 +417,8 @@ pub struct Run {
|
||||
pub monospace: bool,
|
||||
pub sans: bool,
|
||||
pub small_caps: bool,
|
||||
/// Hyperlink text (rendered in the hyperref link colour).
|
||||
pub link: bool,
|
||||
/// True for the synthetic kern that carries paragraph indentation.
|
||||
pub paragraph_indent: bool,
|
||||
/// Alignment declaration active when this run started its paragraph.
|
||||
@@ -437,6 +443,7 @@ impl Run {
|
||||
monospace: false,
|
||||
sans: false,
|
||||
small_caps: false,
|
||||
link: false,
|
||||
paragraph_indent: false,
|
||||
alignment: None,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user