Skip to content

GraphCompose v2.5.1

Latest

Choose a tag to compare

@github-actions github-actions released this 22 Nov 16:33

2.5.1 is a patch release for font handling in the PowerPoint and Word exports. Upgrade from 2.5.0 if you register your own font families for PPTX or DOCX output. No public API changed.

  • PPTX: a run asks for the face its family actually holds, so a family registered under a name like Acme-Sans-Bold no longer draws its plain text bold.
  • PPTX: two families sharing a name no longer overwrite each other, and a face or family that cannot be read or carried no longer stops the export — the deck is written and a warning names it.
  • DOCX: a document no longer ships two face sets under one font name, and the export report names a carried face Word or LibreOffice will not draw.
  • Release tooling: the staged release smoke and the cut script work with Maven 3.10 and on Windows.

Embedded fonts do not guarantee identical output on every machine: PowerPoint may draw a locally installed or Office cloud copy of a font with the same name. The full notes below give the measurements.


v2.5.1 — 2026-11-22

Fixed

  • Which face a PPTX run asks for is the family's own answer wherever the family can give one.

    • A run's bold and italic flags are the span's decoration plus, until now, a style suffix at the
      end of the name the family was registered under. The name was read even for a family that
      distinguishes its faces itself: a single definition under Acme-Sans-Bold holding a regular
      file and a bold one flagged every run of itself, the plain ones included, and a definition
      under such a name holding one regular file asked for a bold face it had not got.
    • Measured in PowerPoint 16 on a 45-character line at 20pt, one deck per PowerPoint instance,
      under a declared name no font on the machine answers to and with the two faces marked in one
      glyph so that no other build of them could pass for them. The page laid out 531.90 plain and
      544.68 bold. The two-face definition drew its plain paragraph from the bold program at 544.80 —
      12.90pt over the frame. On the same deck with that run's flag cleared, which is what is written
      now, it drew 531.94 from the regular program and the bold paragraph did not move. The one-face
      definition drew 522.73, 9.17pt short of the frame; with the flag cleared the same regular
      program drew 531.94, measured on that deck when the entry below was made.
    • The name is now read only where the family cannot answer: a family carrying two or more
      programs says nothing by its name, one carrying a single program may be named in the style that
      program itself is, and one carrying none — registered without sources — has only its name. The
      style a carried program is comes from the program, not from the slot a caller filled: the file
      passed as a family's regular source may be a bold program, which is exactly the per-face
      registration this reads. That registration still asks for its face: measured, its paragraph
      comes out 12.88pt short of the frame, from the regular program, with the flag taken away.
    • One answer, asked once. The flag decides three things — the attribute a run carries, the face
      recorded as drawn, and the viewer ascent the frame is seated on — and all three now come from
      PptxRenderEnvironment.runIsBold/runIsItalic rather than from three readings of the style.
      The seat formula PptxViewerMetrics.ascentPoints therefore takes the face as two parameters
      instead of reading it: it is the one formula the render and the geometry mirror in the tests
      share so that they cannot drift, and the mirror passes what it writes on the run it checks.
    • PptxFontMapping.familyFor no longer takes a style suffix off a name. That branch was dead: a
      registered family declares its own wordFamily() and never reaches it, a bundled name carries
      no suffix, and a name nothing registers must resolve in the font library to be laid out at all.
      One observable thing goes with it — the substitution warning used to group Roboto-Regular and
      Roboto-Bold into one line, and now counts such spellings apart; neither can reach a render.
    • Deck bytes change for a family registered under a name carrying a style token that the family's
      own faces already answer for. No preset or example here registers such a name, which is what
      the sweep of the catalogue and the templates says; no DOCX path is touched at all.
  • A PPTX run no longer asks for a bold or italic face because the family's registered name
    happens to contain the word.

    • The flag a run carries came from any bold, italic or oblique anywhere in the name a
      family was registered under, while the only style token this backend otherwise recognises is a
      suffix at the end of a name. So a family registered as Acme Sans Bold, or Boldoni Text, had
      the flag on every run of it, including the plain ones the page had measured in the regular
      program.
    • Measured in PowerPoint 16 on a 45-character line at 20pt, one deck per PowerPoint instance,
      with the two faces marked in one glyph so no other build of them could pass for them: a family
      of two faces under such a name had its plain paragraph drawn from the bold program at
      544.80pt where the page laid out 531.90pt — 12.90pt wider than the frame the engine sized for
      it. A family of one regular face under the same name had that line drawn from the regular
      program at the same size, 45 glyphs of the same widths, yet ending 9.17pt short of the frame;
      why it ends earlier was not measured. With the flag taken off the plain run, both came out at
      531.94pt, within four hundredths of the 531.90pt the page laid out.
    • The flag now comes from a style suffix at the end of the name and from no other reading of it:
      one list of suffixes, read by the flag. A registration per face — Acme-Sans beside Acme-Sans-Bold under one
      wordFamily, one file each, neither paragraph carrying a decoration — still asks for its face,
      which is the one arrangement where the name is the only signal there is: measured, that
      paragraph comes out 12.88pt short of the frame, from the regular program, if the flag is
      dropped.
    • What it costs: the same per-face registration spelled with a space (Acme Sans Bold) loses the
      flag. The spelling is the caller's, and the font-coverage page now says so with the number.
    • What it did not reach, measured and pinned by a test rather than left to be found: a single
      definition under a name ending in -Bold that holds both a regular and a bold file flagged
      every run of itself, its plain paragraph drawn from the bold program at the same 12.90pt over
      the frame; so did such a name over a regular file alone. Both are closed by the entry above,
      which keys the flag on the registration.
    • Two more things take this flag besides the b attribute: which faces a bundled family is
      embedded with — unmoved here, since no bundled name carries a token at all — and, through the
      face's viewer ascent, where the frame is seated. The ascent arm was not demonstrated: the line
      top was identical in every measured deck.
    • The suffix list gained -Bold-Italic and -Bold-Oblique, so that a per-face name spelling the
      pair with an inner hyphen keeps both halves of its face instead of only the italic one.
    • Deck bytes change for a family registered under a name that contains a style token but does not
      end in one of the -Bold / -Italic / -BoldItalic / -BoldOblique suffixes — the position
      is not what decides it, the hyphen is: Acme Sans Bold ends in the token and is affected. No
      bundled family's name carries a token at all (of 50 FontName constants the nine that do are
      the standard-14 aliases, already excluded), and no preset or example here registers such a
      name.
  • A PPTX export's font-name line no longer claims an outcome the measurements do not support,
    and the limit no deck can carry its way out of is written down.

    • The line render.pptx.font.name.mismatch named two outcomes for a face whose program states
      another family than the deck declares. The second was wrong: the Oswald-SemiBold it cited
      was not drawn with the viewer's own weight added, because that deck was not drawn from the
      carried programs at all. The line now names the condition and no outcome, and keeps firing for
      the two arrangements the measurements cleared, because only one viewer was measured.
    • What the condition does cost was measured on one arrangement only — a family whose faces state
      different names, where the odd face is the one replaced. Two arrangements of the same
      condition were measured drawing the carried program after all, each under a declared name no
      font on the machine answers to: a face in the bold element stating another family (439.86pt
      against the page's 439.70pt), and an italic face of a family whose faces all state the same
      other name (497.95pt against the page's 497.68pt, from files marked in one glyph so that no
      other build of the same face could pass for them).
    • The limit: a machine that has a family under the declared name can draw the deck from that
      family and leave the carried faces unused, and nothing in a deck reaches it. Measured in
      PowerPoint 16 on a 45-character line at 20pt, one deck per run: the OrangeOps preset's pair
      (Oswald-Regular regular, Oswald-SemiBold bold, declared Oswald) had its bold paragraph
      drawn at 480.10pt where that program itself draws 469.70pt, and the subsets PowerPoint wrote
      into its own PDF export were the Oswald Regular and Bold of Office's cloud-font cache
      glyph for glyph. Oswald is in no Windows font folder or font registry key on that machine: a
      cloud-font cache is not a font folder, so "the font is not installed" does not establish that a
      carried face is what gets drawn. Most of the 10.40pt is the weight and a little is the build:
      on the programs' own numbers the cached Bold draws 450.18pt, its SemiBold 440.58pt and the
      carried SemiBold 439.70pt, so 9.60pt is Bold against SemiBold and 0.88pt is another build of
      the family — PowerPoint drew the line 0.08pt under the cached Bold's own figure.
    • Five arms, one factor each, drew 480.10pt to the hundredth every time — the container's weight
      field, the program's usWeightClass, its fsSelection bold bit, its head.macStyle bold bit,
      and its name id 1 rewritten to the declared name — and so did a sixth setting all four of the
      program's own fields at once with its id 2, and a control arm that recompiled the file without
      changing a value. The run's own b flag does change the drawing, but only by picking the slot:
      without it the local family's regular is drawn, at 405.91pt. Declaring the family as the carried
      face states it (Oswald SemiBold) is worse: that name is a local family too, both paragraphs
      came out of it, and the plain line reached 440.93pt where the page measured 405.02pt. It does
      not always happen and what decides is unmeasured — a deck declaring Lato, carrying two faces
      marked in one glyph to differ from the cached Lato, was drawn from the carried pair.
    • No behaviour and no deck's bytes change: an export cannot know what the viewing machine has, so
      there is nothing to warn about and nothing to refuse. The limit is recorded in the PPTX
      font-portability entry of the backend capability details, on the font-coverage page, and as a
      symptom in docs/troubleshooting.md; the log-key list carries the correction to the line.
  • A PPTX export no longer stays silent about a face it carries that a presentation may not
    draw as laid out.

    • A presentation can match an embedded face to the family a deck declares by the family the
      program states for itself — name id 1 — rather than by the names its container carries.
      Where the two differ, the face travels and the runs laid out in it may not be reached that way.
    • Measured in PowerPoint 16 on a 45-character line at 20pt, one deck per run, with neither
      family in the machine's font folders, its font registry keys or Office's cloud-font cache: a
      deck declaring Asap Condensed and carrying the bundled
      AsapCondensed-Italic, whose own family record reads Asap Condensed Condensed Regular, had
      that paragraph drawn in Arial Italic at 566.51pt where PowerPoint draws that same program
      at 443.65pt once the record names the declared family — the engine's own render of the two
      faces is 443.14pt and 443.96pt, which is what the page laid out. Its regular paragraph, whose
      record does name the declared family, came out at 442.92pt. Rewriting that one record to the
      declared name, and nothing else, was the only change that drew the program; rewriting it to the string it already held changed
      nothing, so neither the rewriting nor the stale checksums it leaves were what the viewer went
      by. Declaring the family as the italic states it had that program drawn for both paragraphs
      and left the regular face unused, so for a family whose faces disagree in that record no one
      declared name serves them all.
    • The log line names both families and no outcome. What the condition was measured to cost, and
      the two arrangements of it that cost nothing, are in the entry above: the second outcome this
      entry first claimed — an Oswald-SemiBold drawn with the viewer's own weight added — was
      refuted by a later measurement, and that deck's bold run has another cause entirely.
    • Such a face is now named in the log (render.pptx.font.name.mismatch), with the family it
      states and the one the deck declares. It is not refused: the program travels as the caller
      asked and no deck's bytes change, which is the whole of what the export can add, and only
      PowerPoint 16 was measured. The line says nothing about whether the family travels either; a
      later face of it can still collide or fail to be read, and those have their own lines.
    • The comparison is on id 1 deliberately, not on the typographic family (id 16) the DOCX backend
      prefers for telling typefaces apart: that is a different question, and reading id 16 here
      would answer with the declared name for the face a presentation was measured replacing — and
      would silence the Oswald pair that id 16 rescues there, a case the line keeps on the strength
      of the condition rather than of a measured loss.
    • The condition is not confined to a mis-built file. A declared typeface is wordFamily(),
      which defaults to the name a family was registered under, so any caller registering a face
      under a name of their own meets it; the font-coverage page now says to declare the name the
      files state. Of the bundled families' face sources exactly one differs today, and a sweep in
      PptxFontNameMismatchTest keeps that count honest across a font bump. The capability matrix
      cell and its details entry move from ✅ to ⚠️ together, the mark the legend reserves for a
      backend whose details name a deviation.
  • A DOCX export no longer stays silent about a face it ships that neither editor measured draws.

    • A font family's slots are filled one file at a time, so a caller can put a program of one
      typeface in the regular slot and a program of another in the bold slot —
      classpath(name, "…/Lato-Regular.ttf").boldResource("…/IBMPlexMono-Bold.ttf"). The export
      writes one w:font with both children, and the PDF backend draws each paragraph in the program
      its slot holds.
    • An editor does not. Measured with a bold run in Word 16.0.20527 and LibreOffice 24.2, each
      document converted in a process of its own, a 45-character line at 14pt: both paragraphs were
      drawn from the Lato program, to the hundredth of a point where the same document ships no bold
      program at all, while that program sat in the package at 137,784 bytes. Where the line is the
      face's own, the bold paragraph keeps the one its own face measured, so it is drawn 1.4pt
      shorter than the line reserved for it, and its line ends 13.11pt short of where Word itself
      draws that program and 8.79pt short of where LibreOffice does — each editor against its own
      rendering of the same program under a name of its own, which is the gap the family costs rather
      than a difference between renderers. Nothing in the export said so.
    • Such a face is now named in the report (embedded font, APPROXIMATED), with the typeface each
      of the two programs states and what a reader sees instead. APPROXIMATED and not DROPPED
      because nothing was refused: both faces are written, and the family travels whole.
    • The bytes of every document are unchanged — the 105-document corpus exports identically — so
      what the note buys is knowing, not geometry. It is not a limit of the format either: the same
      program declared under a name of its own is drawn by both editors (Word 406.53pt, LibreOffice
      IBMPlexMono-Bold 398.10pt against the page's own 398.00pt). Carrying a mixed family that way
      would change the bytes of every such document and the Word name a bold run carries, and was
      decided against.
    • Whether two programs are of one typeface is read off the programs, as the format means it: the
      typographic family (name id 16) where a face states one, the family (id 1) otherwise — both
      from the Windows en-US record and only that one, so that two faces are never compared across two
      namings of one typeface. Id 1 alone would be wrong on a bundled face and on a shipped preset:
      AsapCondensed-Italic states Asap Condensed Condensed Regular there where its three siblings
      state Asap Condensed, and it is the one face of the 130 bundled that states an id 16; the
      OrangeOps preset pairs Oswald-Regular, which states Oswald, with Oswald-SemiBold, which
      states Oswald SemiBold as its family and Oswald as its typographic one. Read as the format
      means it, all 188 pairs of faces inside the 35 bundled families match and so does that pair, so
      no family a document here is set in draws this note.
    • The note is said only where the family ships a regular face and both programs name their
      typeface, since that is what was measured and a program whose name cannot be read is one the
      export cannot compare. What the editors read the sameness off was not measured either, so it is
      said of every pair of typefaces a family holds and every slot but the regular one, on the
      strength of the one pair and the one slot that were.
  • A DOCX export no longer ships two face sets under one font name.

    • A document's font table declares a family by its FontFamilyDefinition.wordFamily(), while
      the families an export knows are kept by the name they were registered under. That name
      defaults to the registered one and can be set apart from it, so two families can declare one —
      the same spelling, or one differing only in case — and the export wrote a w:font element and
      an obfuscated part for each.
    • Measured in Word 16.0.20527 and LibreOffice 24.2, eight configurations, each document
      converted on its own: both editors set both paragraphs in the face declared first and
      ignored the later program. A run naming the second spelling of a case-only pair was set in the
      face declared under the first, so the two spellings are one name and not two. The text of the
      later family was therefore set in a face it was not laid out in: on a 45-character line at
      14pt the two faces end 68.6pt apart in Word and 64.0pt apart in LibreOffice, so every line
      break past it is somewhere else. The export said nothing about it.
    • One registration reaches it: a caller's own family declared under a bundled family's Word name
      — classpath("Corporate", …).wordFamily("Lato") — meets the bundled program in a document set
      in both of them, because families are set apart by the name they were registered under and
      these two differ there.
    • Declaring only a slot the other family leaves empty does not help where the two programs are
      faces of different typefaces: a family declaring only w:embedBold beside one declaring only
      w:embedRegular had its bold program ignored in both editors — Word synthesised bold from the
      other family's regular face, LibreOffice drew the text unemboldened.
    • A free slot is the only place where the second program could have been read at all: where the
      two families are set in text in the same slot, a w:font has one child for that slot and an
      editor has one program to draw from whatever the two are. For a free slot, what the editors go
      by is not the shape of the declaration but the pair of typefaces. A second program under one
      name can be written as an element of its own — which is what the measurements above did — or as
      another child of the holder's element, which is the shape the PPTX backend's per-slot rule
      would need; the second shape is not one two registrations can write, since this refusal comes
      first, so it was written by one registration whose two slots hold programs of two typefaces, a
      document an editor cannot tell from the other. Both shapes were measured in Word 16.0.20527 and
      LibreOffice 24.2, on a 45-character line at 14pt with a regular and a bold paragraph, and gave
      the same answer twice. With Lato regular in
      w:embedRegular and IBM Plex Mono bold in w:embedBold, both paragraphs were drawn from the
      Lato program and the Plex Mono one was used by neither — as two elements and as two children
      of one element alike, and whichever of the two children was written first. With Lato regular
      and Lato bold, the ordinary case of one family filling two slots, both programs were read in
      either shape, each paragraph drawn from its own.
    • So giving the family up whole, rather than only the slot it clashes on, costs nothing more
      except in one case: the given-up face is bound for a slot the holder left empty and is a
      face of the same typeface as the holder's program. There it gives up a program both editors
      would have read. What the editors read the sameness off — the programs' own name table, or
      something else — was not measured. Which program sat in w:embedRegular was never swapped
      either, so for two elements "survived because its element came first" and "survived because it
      is the regular face" stay unseparated; within one element the two children's order was swapped
      and did not decide. The backend-capability details and the DOCX recipe carry the measurement,
      with the limit it leaves.
    • The family that declares a name another one already ships under is now given up whole — no
      part, no element — and the report names both families by the names they were registered under,
      with the Word name each of them declares, and says that
      the given-up family's runs still carry its own name and are set in whatever it resolves to
      (embedded font, DROPPED). The names are compared with String.equalsIgnoreCase: the
      comparison has to ignore case, which is what was measured, and fold the same way wherever the
      export runs, which FontName's own equality does not — it normalizes with toLowerCase() and
      so follows the default locale.
    • A family is now read once, by family rather than by the name a style used. A style can name a
      face of a family — Helvetica-Bold — and the family itself, and both ask for that one family,
      so a family registered under one of the standard-14 names was read twice and declared itself
      twice. It now writes one element holding every slot asked of it anywhere, instead of one
      element per name a style used.
    • Which family keeps the name is decided by the document: faces are read in the order the
      document's tree names them, then the page zones', then the header and footer bands', so a
      family registered earlier and set in text later gives way to one set in text before it, and a
      family set only in a page zone or a band gives way to any family the body is set in. That is
      the opposite of the PPTX backend below, where a registered family is carried before anything
      is drawn and holds the name whether its text is on a slide or not. A family whose every face
      is given up for its own terms keeps no name either, since it writes no element.
    • The measured limit of all of it: where the declared name is one the editor knows itself, the
      editor's own font wins regardless. Word 16 drew its own Lato for a document that declared
      Lato with another family's program in the first element; LibreOffice 24.2, with no Lato
      installed, drew that program.
    • A side effect of the same collision is gone with it. Each shipped face's natural line was kept
      under its declared name and slot, so two face sets under one name left the later one's line
      standing for both, and the holder's paragraphs were written at an exact height instead of a
      least one — measured, the text then stood 0.36pt higher in Word and 0.40pt higher in
      LibreOffice 24.2. With one face set per name those keys cannot meet. A given-up family keeps
      no line of its own: its runs read the key their own spelling and slot make, so they read the
      line of a face the holder shipped only where both of those match one the holder filled, and
      none where the spelling differs in case or the slot is one the holder left empty. Whether that
      reaches the written line depends on the two faces, so it is pinned by a test per route rather
      than asserted as a rule, and recorded in the capability details.
  • A PPTX export no longer lets one font family write over another that shares its viewer name.

    • A deck holds one font-list entry per declared typeface, with one program in each of its four
      style elements, and XSLFFontInfo looks that entry up ignoring case. So two registered
      families whose FontFamilyDefinition.wordFamily() matches that way — two that differ only in
      case included — write into the same entry and the same four elements. The guard in the entry
      below answers for one definition's faces, so each of the two passed its own elements and the
      later one still wrote over the earlier one's part.
    • Measured on both public paths, files(…) and .classpath(…): two definitions under one
      wordFamily, each with a single regular face, left one entry declaring p:regular and
      one part holding the later face's bytes, with nothing in the log. PowerPoint 16.0 reported
      the family embedded and drew both families' text from that one program — a PDF exported from
      such a deck had a single font subset of 1,060 glyphs, the later face's glyph count, where the
      two declared under names of their own export two subsets of 3,023 and 1,060.
    • The reachable form needs only one registration: a caller's own family declared under a
      bundled family's viewer name — files("Corporate", …).wordFamily("Lato") — collides with
      the bundled program, because the bundled pass skips only a family whose FontName the caller
      registered, not one that merely shares a declared name. That deck carried the bundled Lato and
      nothing of the caller's font, and drew the caller's text in Lato.
    • The family whose face arrives into an element another family already holds is now refused
      whole, as a family with an unreadable face is — a face of it bound for a free element does not
      travel either — and the family holding the element keeps its program and its viewer metrics.
      render.pptx.font.embed.skipped names
      both faces with their own weights, the family each was registered under, the element they
      agreed on and the entry the deck carries them under — which is the first declaration's
      spelling, so a reader hunting a later family's own spelling in the package is not sent after a
      declaration that is not there. Because the bundled pass runs after the last slide, an
      explicitly registered family is the holder in the form above and keeps its own font. The
      limit of that order: a registered family is carried before anything is drawn, so one declared
      under a bundled family's name and never drawn in still takes the element, and the bundled
      family's own text is then drawn from that program — where before this change the bundled face
      wrote over that part and that text was right. Both arrangements are wrong for one of the two
      families; this one says which, in the log.
    • What refusing cannot fix, and what the log says rather than the ordinary "needs that font
      installed": the refused family's text carries the shared declared name too, so a viewer draws
      it from the program that did travel. A run names a family and no more, so no deck can hold two
      programs for one name and one element. What the refusal buys is the other family's text,
      which was being drawn from the wrong program before.
    • Two definitions that share a name without sharing an element — one holding p:regular, the
      other p:bold — still both travel, two parts under the one entry. That gets a warning and not
      a refusal: render.pptx.font.shared.family, once for the declared name however many families
      join it, because sharing the name is a hazard the elements cannot show — the page measured each
      family with its own program while the deck has one name for all of them, so a style a family
      does not itself hold under that name is drawn from whatever another put there.
    • The guard's boundary is what FontName counts as one family, which is case-insensitive: two
      registrations of one name are one family to it, and the later program travels rather than
      being refused. That is not a softer form of the defect but the opposite of it — FontLibrary
      keeps the last factory registered under a name, so the later program is the one the page
      measured with, and refusing it would leave the deck carrying a face no text was laid out in.
      An identical definition registered twice therefore stays harmless too.
    • The elements are claimed where the faces are handed to the presentation, not where they are
      read: a registered family's viewer metrics are read in between, and a family given up there
      has had nothing written for it — no entry, no part. Claiming at the read would have let such
      a family hold an element it never filled, cost the next family declaring that name its own
      program, and tell it its text is drawn from one that travelled when none did.
    • None of the 38 bundled family definitions shares a declared typeface with another, measured
      across the catalogue, and no template or example in the repository declares one twice.
  • A PPTX export no longer ships one face of a font family under another face's name.

    • A deck declares an embedded face under one of four style elements — p:regular, p:bold,
      p:italic, p:boldItalic — and holds one face in each. Which element a face lands under is
      not the slot the family registered it in: XSLFFontInfo.addFacet reads the weight and the
      italic flag out of the container and picks from those, so a face a caller put in the bold
      slot whose own usWeightClass is 400 or less reads back as the regular one, and lands where
      the regular face already is. Seating a second face in a taken element does not add a part —
      it writes over the part the first face wrote and keeps the declaration the first one made.
    • So a family like files(regular).boldPath(light) came out as a deck carrying one program
      that was the bold-slot face's bytes, declared p:regular, with nothing in the log. The
      loss was not of a face but of the right one: PowerPoint 16.0 reported the family as embedded
      and drew every run of it, the regular ones included, from the one program that survived. In
      a PDF exported from such a deck the font subset carried the glyf, hmtx, cmap and loca
      tables of the face from the bold slot, byte for byte, where a correctly seated family
      exported two subsets an order of magnitude larger. Both public paths reached it —
      FontFamilyDefinition.files(…) and .classpath(…) alike.
    • Two faces of a family that read back as the same element are now refused, as an unreadable
      face is: nothing of the family is carried, render.pptx.font.embed.skipped names both faces,
      the element they agreed on and the weight and italic flag it was read from,
      render.pptx.font.substitution says the deck does not carry the family, and the deck is
      written — with its text, where the page drew in that family.
    • Refused rather than reseated, because the element is the presentation's answer and not this
      backend's to pick: there is no fifth one, and two faces that collide agree on the only two
      fields it is read from. Refused for the family rather than the face: on the registered path
      because keeping the first would leave the family its viewer metrics while a face of it did
      not travel, which is what every other refusal there is held away from, and on the bundled
      path, which keeps no metrics, because embedding already answers whole-or-nothing for a
      family and a deck carrying part of one is what the substitution warning cannot describe.
    • A family seated as its faces read back is carried exactly as before. The sources dedupe by
      description before the elements are compared, and the builder fills an unset slot from a
      source already given, so neither a family of one file nor a partially named one can collide
      with itself. None of the bundled families collides: each one's distinct faces read back onto
      distinct elements, measured across the catalogue — including the four that ship fewer than
      four faces and so reach the dedupe rather than the comparison.
    • This answers for one family definition. The element's capacity belongs to a declared
      typeface, so two definitions registered under the same wordFamily share one font-list
      entry and reach it from outside this guard; that is the changelog entry above.
  • A PPTX export writes its deck when a face's name is longer than the presentation can read.

    • The embedder wraps a font program in the container PowerPoint wants, whose header carries
      four names: the family, the style, a version and a full name it joins from the family and
      the style. The presentation reads that header through two windows of a thousand bytes each.
      Taking the face reads each name on its own, and refuses a longer one with an unchecked
      RecordFormatException — raised inside XSLFFontInfo.addFacet, past the point where a
      refusal still costs only the font, so a registered family with a long name cost the whole
      deck, after the page had laid out and whether or not any text was drawn in it. Reading the
      written part back later takes the first thousand bytes of it and parses the header out of
      those, so a header past 1,000 — the fixed 96 bytes and the four names together — wrote a
      deck whose font part came back as Buffer overrun, having 1000 bytes in the stream.
    • The readers in front of the writer did not close either, because they do not read the same
      names. java.awt.Font.createFont, which the viewer metrics are read through, rejects a
      family or full-name record over 256 bytes — but it never reads the style record at all.
      A face whose subfamily name is long therefore passed every read: Lato-Regular rewritten with
      a 496-character subfamily makes a 1,002-byte full name and lost the deck, and from a
      222-character one the deck was written with a part POI could not read back.
    • The header is now measured where the container is built, against the stricter of the two
      windows, so such a face degrades the family exactly as an unreadable program does: nothing
      of the family is carried, render.pptx.font.embed.skipped names the face, the header and
      each of the four names, render.pptx.font.substitution says the deck does not carry it, and
      the deck is written — with its text, where the page drew in that family. That covers the
      bundled path too, which has no metrics pre-flight. A face whose header fits is carried
      exactly as before: a header moves in steps of four, since the family is written twice, so
      998 bytes is the largest any face can express and that one is still written and read back
      whole. No bundled face comes near it — the heaviest header among the 130 is 250 bytes.
    • Refused rather than shortened, because what a viewer matches an embedded program to its
      declared typeface by has not been measured here, so trimming a name would risk a deck
      carrying a program no viewer uses. The thousand is POI's default, which a host can lower
      with IOUtils.setByteArrayMaxOverride, so the check is a floor rather than a guarantee.
    • Rolling the hand-over back instead would not have helped: at that refusal the writer throws
      in its first statement, before the part, the dataId and the embedded-font flags, so there is
      one declaration behind it and nothing to undo. Widening the catch there would have swallowed
      POI's part-store failures with it.
  • A PPTX export writes its deck when a registered family's viewer metrics cannot be read.

    • A registered family's font program is read by two different parsers: the embedder parses
      its table headers with fontbox, and the viewer metrics — the ascent PowerPoint seats a
      top-anchored frame's first baseline by — read the program whole through
      java.awt.Font.createFont. The two do not accept the same files. fontbox skips a table
      whose directory entry runs past the end of the file and reads on; createFont validates
      every entry against the file size and rejects the font for it. So a font truncated below
      its last table embedded, and then had no readable metrics: the metrics read threw an
      IllegalStateException that cost the whole deck, after the page had laid out, and whether
      or not any text was drawn in the family. One byte off the end of the bundled Lato-Regular
      is enough: its last table is GSUB, which fontbox does not require.
    • The metrics are now read in the same pre-flight as the programs, before the presentation
      is handed anything, and a refusal degrades the family exactly as an unreadable program
      does: nothing of the family is carried, render.pptx.font.embed.skipped names the face
      and the reader's own reason, render.pptx.font.substitution says the deck does not carry
      it, and the deck is written. A family the deck draws in keeps its text on the slide —
      measurement reads the font through the parser that accepts it — and loses only the program.
    • Not carrying it, rather than carrying it without metrics, because what is left to seat
      such a family is the PDF descriptor's ascent, and for some faces that is not the ascent
      the viewer uses: of the 130 bundled faces, 126 agree to within 0.0001pt at 10pt text while
      the four Alegreya Sans faces differ by a full point — 8.0pt from the viewer's own reader
      against 9.0pt from the descriptor. Which of the two a refused font would have been cannot
      be established, since the reader that would say is the one that refused, so a deck
      carrying the program could have put every top-anchored frame's text a tenth of the em off
      its measured line with nothing said.
    • A family both readers accept is carried exactly as before: no intact font was found that
      the embedder's reader accepts and the metrics reader refuses, so the new gate costs no
      working font.
  • A PPTX export writes its deck when a registered family cannot be carried at all.

    • Embedding is best-effort by contract: a family whose licence forbids it, or whose bytes
      cannot be read, costs the deck the font program rather than failing a render the PDF
      backend would complete.
    • A font source may refuse unchecked, though, and only the checked refusal was caught.
      A family registered with FontFamilyDefinition.classpath(...) reports a missing resource
      with an IllegalArgumentException, so a family registered on the document and never drawn with
      was enough to lose a deck the engine had already laid out — a missing file on disk
      degraded, a missing classpath resource threw.
    • Both now end the same way: the family is not carried, the warning on
      render.pptx.font.embed.skipped names the family, the source and the failure, a second
      one on render.pptx.font.substitution says the deck does not carry it, and the deck is
      written. A family that embeds is carried as before.
    • A family one of whose faces cannot be read is now carried whole or not at all. Embedding
      answers for the family rather than the face — one answer decides whether it keeps its
      viewer metrics and whether the reader is told to install it — but the faces were handed to
      the presentation as they were read, and the presentation is mutated both by declaring the
      family and by taking a face. So a family whose second face could not be read left the
      first one in the deck while the warning said the deck carried nothing of it, and a family
      whose first face could not be read left the bare declaration. Every face is now read
      before any is handed over. A deck whose families all embed is unchanged; one that was
      carrying half a family now carries none of it, as it was already being told.
    • That covers a face whose licence bits forbid embedding as well as one that cannot be read:
      the licence bits are checked once the face has been read whole, which is still before any
      of it is handed over. So a family of one embeddable face and one
      restricted face now carries neither, where it used to carry the first and say it carried
      nothing. No bundled family is affected; this is about a font a caller registers.
    • Where the presentation itself refuses a face it is handed, after the program is read and
      parsed, that step keeps the handling it had, including which failures it raises rather than
      degrades on. What it leaves behind depends on where it refused: addFacet reads the
      container's header before it writes anything, so a refusal over the container leaves only
      the declaration the XSLFFontInfo constructor makes on every call, while the part, the
      dataId and the embedded-font flags come after and a refusal among those is POI's own part
      store failing. The refusal over the container is handled before it now — see the entry
      above — so what is left here is the part store, which no font can provoke.
    • A family the deck actually draws in still fails the render, and with the same message:
      the page cannot measure a face it cannot read, which happens before a slide is built.
  • A PPTX substitution warning no longer claims a reference the deck does not make. All four
    lines that report a family the deck could not carry ended the deck references "X" by name
    only
    ; three of them — registered without binary sources, could not be embedded, and the
    bundled-family one — are logged where that cannot be known. The first two are logged while the
    render environment is built, before a single run is drawn, so neither can know whether
    anything will use the family: a family registered
    without binary sources and never drawn in is named in no part of the written package at all,
    which is the case the sentence was false for, and it covers the could not be embedded line
    as well. The second reason given, that the presentation refusing a face it has been handed
    keeps the declaration and any face taken before it, is withdrawn: every refusal either
    embed-failure line is reached by leaves nothing of the family in the deck, since the reads,
    the licence check and the name check all run while the presentation is still untouched, and
    the one refusal that did get past them killed the render rather than logging anything. For
    the bundled line that was the only reason, and the bundled line is logged after the last run
    is drawn, over a family the loop has already established was drawn in — so by name only was
    not false there. What it was, and remains, is a prediction the line is in no position to make:
    with no program for the family carried, what a viewer draws its text from is the viewer's to
    decide.
    Each of the three now says what is not carried — no program for the family, or not the family
    whole — and leaves what the deck references to the text that was drawn in the family, or in
    the face that did not travel. The two embed-failure lines say what that text needs installed
    rather than what a viewer will do with it, since with a face of the family in the deck that is
    the viewer's to decide. The fourth line is reached only where nothing will carry the family,
    so what it says is true and it is unchanged. Log wording only: what a deck carries is
    unchanged.

Tests

  • DocxFontTableTest pins that a w:font element declares only the faces of the family it is
    named for, reading each child's program through the relationship that child itself states
    rather than inferring it from the order the parts were written, and with a second element
    beside the contended name so that a face bound into the wrong element fails as well as an
    extra child in the right one. The family under its own name is built from a third typeface, so
    that a child's program says which family shipped it. The case is keyed on the refusal having
    happened at all — without that it passes on a document where the two families never contended
    for the name. What the export writes is now pinned there, since the editors' answer does not
    rest on it.
  • PptxUnreadableFontSourceTest reaches the writer at both of the name IDs that matter, since
    varying only the family name measures the two readers agreeing rather than the gap between
    them. Its control travels and reads the written deck's font declaration back, which the
    first version of that control did not — it wrote a deck whose font part POI could not read.
    Two further cases hold the user-visible half, a family the page draws in keeping its text and
    losing only the program, and the band where the embedder takes a face the metrics reader
    refuses. PptxEmbeddedFontTest pins the limit on both sides against POI's own readers: the
    largest header a face can express is written, handed over and read back out of the part, and a
    header four bytes longer overruns POI's read. FontNameTable carries the name-table rewriting
    they share.
  • PptxEmbeddedFontDeclarationTest holds what a deck says about the programs it carries. POI's
    blank presentation asks for subsetting and every face it takes asks again, so a deck that
    carries a program — registered, bundled, or both — has to say the opposite, since nothing here
    subsets a face and the flag is a standing instruction to subset on save. The Word counterpart
    of it was measured doing exactly that, cutting an embedded face from 110 KB to 28 KB, which is
    why a document never writes it; what PowerPoint does with the pair was not measured here. A
    deck that carries none leaves embedding off, where the flag decides nothing. A third test pins
    the template value itself, since the carries-a-program case rests on the flag arriving set.
    The backend-capability details record it.

Build

  • The staged release smoke passes a staged bundle that resolved from the staged
    directory.
    run.sh --staged-repo and run.ps1 -StagedRepo require every train artifact a
    scenario resolved to record the staged repository as its source in _remote.repositories, and
    looked for the bare id staged. The wrapper moved to Maven 3.10 in #991, whose resolver records
    the id followed by the SHA-1 of the repository URL, staged-<sha1>, so every scenario failed
    after a successful build: on the 2.5.0 cut the summary read 0 of 9 over nine BUILD SUCCESS.
    The check now accepts staged- followed by the SHA-1 of the staged directory's own URL, which
    the script computes, and still accepts the bare staged an older Maven writes. Everything else
    still fails it: the Central mirror's name, a hash over another directory, a missing record, a
    sibling at another version, and a scenario that resolved no train artifact. The Central mode
    makes no such check and is unchanged. release-script-check.yml now also runs on a change to
    either smoke script, and lifts the check and its key from each: the key for a known URL must be
    staged- and that URL's SHA-1, the script's own staged-<sha1> and the bare staged must pass, and the
    Central mirror's name, another directory's hash, a prefixed id and an empty id must fail.
  • cut-release.ps1 no longer stops at a git prompt after the release commit. A commit or a
    fetch may start git's automatic maintenance, and on Windows its repack asks (y/n) for every
    .git/objects directory another worktree's git holds open. On the 2.5.0 cut that prompt stopped
    the script after the release commit, and the tag and the push were done by hand. Invoke-Git
    now runs git with -c gc.auto=0 -c maintenance.auto=false, and the pre-flight git fetch, the
    one repository-changing call that bypassed it, goes through it too; a failed fetch now reports
    through the helper's message. ReleaseScriptGitExitCodeGuardTest holds the helper to both
    settings and a statement-initial git fetch to the helper, and release-script-check.yml
    commits through the helper in a repository where a bare commit starts automatic maintenance,
    and fails if the helper's commit starts it too.
  • Dependency updates from the maven-minor-patch group (#1057, #1073). One reaches a
    consumer: jackson-databind, a compile dependency of graph-compose-testing, moves from
    2.22.4 to 2.23.0, together with its test-scope pin in qa/. The rest are build tooling: the
    Maven wrapper 3.10.0 → 3.10.1, and exec-maven-plugin 3.6.4 → 3.7.0 in benchmarks/ and
    examples/.
  • ci.yml and codeql.yml no longer list 2.5-dev under push.branches. The 2.5 line has
    reached develop and the branch is deleted, so the trigger added for it goes with it.

Documentation

  • The release process states the rule for a release line branch instead of the 2.5 one. Its
    branch-flow section listed 2.5-dev as the branch the 2.5 work lands on; it now says when a
    line built apart from develop is listed in the CI and CodeQL triggers and when it is dropped.
  • What a bundled face calls itself, and where that name travels. A font file states its
    family under name id 1, and a face the four-style model cannot hold states its real family
    under id 16. One bundled face states an id 1 that simply reads wrong —
    AsapCondensed-Italic gives Asap Condensed Condensed Regular, a doubled width word and a
    Regular on an italic — where its full name, its PostScript name and its id 16 all give the
    family correctly. The file is the one Google Fonts publishes, byte for byte, with no corrected
    version published upstream, so it ships as it is rather than as a rebuilt binary of ours, and
    a system that reads id 1 alone lists that string beside Asap Condensed. The font-coverage
    page now says where the record does and does not travel: a PDF names each face by its
    PostScript name, a DOCX names the family its caller registered while reading these records to
    tell a family's typefaces apart, and a PPTX carries id 1 in its font container.
  • A PPTX font container names its face by id 1 and id 2, not by the typographic names a face
    outside the four-style model states, because the header read it is built from keeps ids 1, 2
    and 6 only. Nothing in the engine compares those fields with the typeface the deck declares,
    and no refusal is keyed on what they say — the one that touches them reads how long they are.
    Preferring the typographic names was tried on both faces here that state them and PowerPoint
    16 drew those decks the same to the hundredth of a point either way, so the javadoc of the
    method that writes them now says not to key a guard on them. Recorded in the backend
    capability details.