---
title: "Introducing F-Office, a drop-in Microsoft Word replacement for AI agents"
date: 2026-12-03
canonical: https://solmaz.io/x/2128544607529279976/
x_url: https://x.com/onusoz/status/2128544607529279976
license: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
---

Introducing *F-Office*, a drop-in replacement for *MICROSOFT WORD* for AI agents https://github.com/osolmaz/f-office

Until now, AI agents could not edit a DOCX file with an open source tool, without risking messing up page layout (as well as humans)

LibreOffice for example, very often shows the pages differently, and messes up the layout when you change something

Imagine having to embed proprietary MS Office in your RL environment's docker image, just so that the agent can learn not to cause layout shifts 💀

That changes today. F-Office is designed to render pages the same as MS Word, down to the pixel, while being extremely lightweight (it is just a few megabytes and can run in your browser!)

In my test set of thousands of documents, it already achieves very high fidelity rendering of DOCX files, a large majority of them being pixel perfect (given the same fonts)

F-Office was developed through black-box implementation, and my goal over the next few weeks/months is to reach 100% coverage, that is, replicate the EXACT same rendering behavior as MS Word

To compliment F-Office, I have built Compatifont, a toolkit to develop open drop-in replacements for proprietary Fonts like Arial, Times New Roman, Calibri. These are built from already open fonts, many of them from the incredible Steve Matteson, like Arimo for Arial

Those fonts were already visually compatible with their counterparts, I just nudged them to the right widths so that there is absolutely no difference in page layout when you replace a font with its open alternative

The result is a word processor in Rust that can be embedded anywhere together with fonts, without any copyright risk. Pages are guaranteed to have the same layout, and 99% of people cannot tell fonts apart, so pages end up being practically the same

Try it out (web DOCX viewer): https://f-office.org/docs
GitHub repo: https://github.com/osolmaz/f-office
Learn more (website has more explainers): https://f-office.org/
Compatifont: https://compatifont.com/

Note: This is a work in progress. I will be fervently refactoring the engine and the interfaces over the next few weeks. But for practical use, it is already miles ahead of alternatives. Try it out on https://f-office.org/docs, and compare it against your MS Word installation

Also, I currently only have a viewer for humans (whereas an agent can edit using the CLI/MCP server). I will be focusing on an actual editor UI, once I have full replication

It is very early and you will run into issues. Feel free to send bug reports/PRs on GitHub
