Skip to content

Commit 1664cf0

Browse files
committed
pdftex space fixes continue, from pdftex r958
git-svn-id: svn://tug.org/texlive/trunk/Build/source@74095 c570f23f-e606-0410-a88d-b1316a301751
1 parent 14f69b1 commit 1664cf0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

texk/web2c/pdftexdir/ChangeLog

+6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
2025-02-18 Thanh Han The <[email protected]>
2+
3+
* pdftex.web (pdf_begin_string): more space fixes.
4+
(pdftex r958)
5+
16
2025-02-17 Thanh Han The <[email protected]>
27

38
* pdftex.web (pdf_begin_string): remove "and (not must_set_text_pos)"
49
from condition for must_insert_space := true.
10+
(pdftex r955)
511

612
2025-02-16 Thanh Han The <[email protected]>
713

texk/web2c/pdftexdir/pdftex.web

+2-3
Original file line numberDiff line numberDiff line change
@@ -16225,7 +16225,6 @@ end;
1622516225

1622616226
procedure pdf_begin_string(f: internal_font_number); {begin to draw a string}
1622716227
var s_out, v, v_out: scaled;
16228-
save_pdf_delta_h: scaled;
1622916228
s: integer;
1623016229
must_end_string: boolean; {must we end the current string?}
1623116230
must_insert_space: boolean; {must we insert an interword space?}
@@ -16296,8 +16295,7 @@ begin
1629616295
{insert a real space char from the font when possible}
1629716296
if pdf_font_has_space_char[f] and pdf_doing_string then begin
1629816297
pdf_out(" ");
16299-
save_pdf_delta_h := pdf_delta_h;
16300-
adv_char_width(f, 32, 3); { to get |adv_char_width_s| and |adv_char_width_s_out|}
16298+
adv_char_width(f, 32, 4); { to get |adv_char_width_s| and |adv_char_width_s_out|}
1630116299
s := s - adv_char_width_s;
1630216300
s_out := s_out - adv_char_width_s_out;
1630316301
pdf_mark_char(f, 32);
@@ -16348,6 +16346,7 @@ begin
1634816346
pdf_read_dummy_font;
1634916347
pdf_begin_string(pdf_dummy_font);
1635016348
pdf_print(" ");
16349+
adv_char_width(pdf_dummy_font, 32, 4);
1635116350
pdf_end_string_nl;
1635216351

1635316352
gen_faked_interword_space := s;

0 commit comments

Comments
 (0)