mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-02-16 11:50:54 +01:00
more
This commit is contained in:
parent
54d67ae413
commit
748939ae00
@ -560,7 +560,10 @@ let
|
|||||||
(fontsize *. float (Pdfstandard14.baseline_adjustment font)) /. 1000.
|
(fontsize *. float (Pdfstandard14.baseline_adjustment font)) /. 1000.
|
||||||
in
|
in
|
||||||
voffset := !voffset +. baseline_adjustment
|
voffset := !voffset +. baseline_adjustment
|
||||||
| _ -> ()
|
| Some (Pdftext.SimpleFont {fontdescriptor = Some {capheight}}) ->
|
||||||
|
voffset := !voffset +. capheight /. 2.
|
||||||
|
| _ ->
|
||||||
|
Printf.eprintf "Unable to find midline adjustment in this font\n"
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if topline then
|
if topline then
|
||||||
@ -570,7 +573,10 @@ let
|
|||||||
(fontsize *. float (Pdfstandard14.baseline_adjustment font) *. 2.0) /. 1000.
|
(fontsize *. float (Pdfstandard14.baseline_adjustment font) *. 2.0) /. 1000.
|
||||||
in
|
in
|
||||||
voffset := !voffset +. baseline_adjustment
|
voffset := !voffset +. baseline_adjustment
|
||||||
| _ -> ()
|
| Some (Pdftext.SimpleFont {fontdescriptor = Some {capheight}}) ->
|
||||||
|
voffset := !voffset +. capheight
|
||||||
|
| _ ->
|
||||||
|
Printf.eprintf "Unable to find midline adjustment in this font\n"
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
iter
|
iter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user