Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Fix the driver behind crashes, sound loss and screen glitches3Clear out junk files and repair common Windows errorsIf html2canvas turns words containing fi into missing, distorted, or incorrectly shaped text, test the font’s standard ligature feature first. Apply font-feature-settings: "liga" 0 to the element being captured, or set it in html2canvas’s onclone callback so only the render copy changes. This is a community-reported workaround, not a universal guarantee: verify it with your exact font, browser, and html2canvas version.
What the fi problem actually is
Fonts can replace character sequences with designed glyphs. The OpenType standard ligature feature, commonly identified as liga, may substitute a single combined glyph for f followed by i. The same feature can affect ff and fl.
A reported html2canvas issue describes those combinations disappearing or rendering incorrectly in an exported JPEG. A separate Stack Overflow answer to the exact fi question suggests disabling standard ligatures before capture. These reports establish a reproducible diagnostic path, not a claim that every html2canvas installation has the same defect.
First, reproduce the exact failure
Do not start by changing several text styles at once. Capture a minimal element containing the failing word and record the environment:
#1 Best Overall
- USB-C 2-in-1 storage OTG: The Lexar JumpDrive Dual Drive D40E features USB Type-A and Type-C connectors in a slim, portable form factor for easy device compatibility
- Transfer speeds up to 100MB/s: Based on internal testing, performance may vary depending upon the host device, interface, and usage conditions. 1MB=1,000,000 bytes
- Plug and Play: Widely compatible with USB Type-C smartphones, tablets, laptops, Macs, and traditional Type-A devices, no software installation required. The 360° swivel design allows for easy switching between connectors without the hassle of losing a cap
- Durable & Compact: The Lexar D40E USB memory stick features a metal enclosure, withstands temperatures from 0° to 50° C (32°F to 122°F), and is lightweight at 26g with dimensions of 70.4 x 16.9 x 11.7mm
- Security & Warranty: Securely protects files using an advanced security software solution with 256-bit AES encryption. Backed by a Lexar 3-year limited warranty
- The exact phrase, including capitalization and punctuation.
- The computed
font-family, weight, style, and whether the font is web-hosted or local. - Browser name and version.
- The installed html2canvas version.
- Output format and scale settings.
Compare the generated canvas with the browser’s normal DOM rendering. If the browser itself displays the wrong glyph, fix font loading or CSS first; html2canvas cannot faithfully reproduce a font that the browser has not loaded correctly.
Quick workaround: disable standard ligatures
Change the live element
The shortest reported workaround sets fontFeatureSettings immediately before the html2canvas call:
const el = document.getElementById('myElement');
el.style.fontFeatureSettings = '"liga" 0';
html2canvas(el).then(canvas => {
document.body.appendChild(canvas);
});
The declaration tells the browser not to apply the standard ligature feature while html2canvas paints the element. Keep the change limited to the target rather than applying it globally; other text on the page may intentionally rely on ligatures.
Use a stylesheet class
A class is easier to inspect and remove than an inline declaration:
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
.html2canvas-no-ligatures {
font-feature-settings: "liga" 0;
}
const el = document.querySelector('#myElement');
el.classList.add('html2canvas-no-ligatures');
html2canvas(el).then(canvas => {
// Use the canvas here.
el.classList.remove('html2canvas-no-ligatures');
});
Restore the class after the promise resolves if the live page should continue using its original typography. If the capture can fail, use try/finally so cleanup still runs.
Rank #2
- 2 in 1: USB C + USB 3.0, 32GB usb c flash drive has dual ports, usb 3.0 port is applied to all devices which have usb 3.0 interface and usb c port is widely used in all Android smartphones with OTG function
- High Speed USB 3.0: Read speed up to 90 MB/s, Write speed up to 30 MB/s, the speed of USB 3.0 interface is faster than USB 2.0, save time to wait, increases work productivity. Note: Speed will be limited if you use the USB key in the USB 2.0 interface
- Large Compatibility: The USB 3.0 Connector is compatible with USB 3.0 & USB 2.0 backward USB 1.1 devices, such as Laptop, Desktop, Car Audio, Tablet, TV, Speakers, Projector. USB-C port is compatible with all Android Smartphones
- Expand Storage: Good performance in storing, transferring and sharing digital data with families, friends, colleagues, customers. It can expand the capacity of smartphone, you can watch movies or share pictures when you go on vacation with your family
- Note: Make sure your smartphone is equipped with OTG function and need to open OTG function in Settings when you plug memory stick, then you can transfer easily data bewteen different devices
Safer approach: apply the fix in onclone
html2canvas documents onclone as a callback for modifying the cloned document used for rendering without changing the original DOM. This is preferable when users must not see a temporary font change.
const source = document.getElementById('myElement');
html2canvas(source, {
onclone: (clonedDocument) => {
const clonedElement = clonedDocument.getElementById('myElement');
if (clonedElement) {
clonedElement.style.fontFeatureSettings = '"liga" 0';
}
}
}).then(canvas => {
const link = document.createElement('a');
link.download = 'capture.png';
link.href = canvas.toDataURL('image/png');
link.click();
});
Use a selector that is unique in the cloned document. If your target is generated dynamically, assign a stable ID or class before calling html2canvas. Confirm the callback behavior against the version installed in your project.
Choosing between live CSS and onclone
| Approach | Advantages | Risks and checks |
|---|---|---|
Set fontFeatureSettings on the live element |
Smallest change and easiest first test | The page is temporarily modified; restore the original style after capture |
Set it in onclone |
Keeps the visible page unchanged and isolates the capture fix | Requires a version that supports the documented callback behavior; verify the cloned selector |
When disabling liga does not fix the image
Confirm the font is loaded
Capture only after the intended web font has loaded. In modern browsers, wait for document.fonts.ready:
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Repair Windows errors before they cause bigger problemsFix Now →await document.fonts.ready;
const canvas = await html2canvas(document.getElementById('myElement'), {
onclone: (doc) => {
doc.getElementById('myElement').style.fontFeatureSettings = '"liga" 0';
}
});
Also check the browser’s computed style and network panel. A fallback font can make the problem appear to be an html2canvas ligature bug when the intended font never arrived.
Test the smallest failing string
Reduce the content to words such as “office”, “final”, or “fluffy”, then add surrounding text back gradually. This distinguishes a glyph-substitution problem from layout, clipping, or missing-font problems.
Rank #3
- USB-C 2-in-1 storage OTG: The Lexar JumpDrive Dual Drive D40E features USB Type-A and Type-C connectors in a slim, portable form factor for easy device compatibility
- Transfer speeds up to 100MB/s: Based on internal testing, performance may vary depending upon the host device, interface, and usage conditions. 1MB=1,000,000 bytes
- Plug and Play: Widely compatible with USB Type-C smartphones, tablets, laptops, Macs, and traditional Type-A devices, no software installation required. The 360° swivel design allows for easy switching between connectors without the hassle of losing a cap
- Durable & Compact: The Lexar D40E USB memory stick features a metal enclosure, withstands temperatures from 0° to 50° C (32°F to 122°F), and is lightweight at 26g with dimensions of 70.4 x 16.9 x 11.7mm
- Security & Warranty: Securely protects files using an advanced security software solution with 256-bit AES encryption. Backed by a Lexar 3-year limited warranty
Inspect spacing styles
Negative letter-spacing has its own reported rendering issue in Chrome on Windows 10. That report also says letterRendering: true did not resolve the symptom. Do not treat that option as the proven fix for fi, and do not assume a spacing bug and a ligature bug share one cause.
Check the current option list
The current html2canvas configuration reference documents onclone but does not list letterRendering. Historical releases may differ, so inspect the documentation and package version used by your application before adding undocumented options.
Fonts, browser differences, and output formats
Font-specific behavior
Ligature design is part of the font. One family may have a visible fi ligature while another uses separate glyphs, and variable-font settings can change the result. Test every production font and weight that appears in your capture.
Browser and platform differences
Text shaping is performed by the browser and operating-system font stack before html2canvas paints the cloned DOM. A workaround that succeeds in one browser may produce a different result elsewhere. Include at least the browsers used by your users in visual regression tests.
PNG, JPEG, and scale
PNG is useful for inspecting glyph edges because it is lossless. JPEG compression can make a correct glyph look damaged at small sizes, so compare PNG output while diagnosing. A high scale improves detail but increases canvas memory and encoding time; it does not repair incorrect shaping.
Rank #4
- 2-in-1 Dual Design: Features both USB-C and USB-A connectors, making it compatible with phones, tablets, MacBooks, PCs, and laptops-no adapter needed
- Wide Compatibility: Works seamlessly with USB A and USB C devices, ensuring reliable file transfers across smartphones, computers, and more
- Ample Storage Options: Available in 16GB/32GB/64GB/128GB providing plenty of space for photos, videos, music, and documents
- Portable & Lightweight: Compact and durable design for travel, school, or daily use-take your files anywhere
- Plug-and-Play Convenience: No software or drivers required; simply insert into USB-C or USB-A ports and start transferring files instantly
Production capture checklist
- Load the exact production font and wait for
document.fonts.ready. - Reproduce the failing
fi,ff, orflstring in a minimal element. - Try
font-feature-settings: "liga" 0on that element. - Move the declaration into
onclonewhen the visible page must remain unchanged. - Compare PNG output with the browser’s DOM rendering.
- Test each supported browser, font weight, viewport, and html2canvas version.
- Remove unrelated spacing or experimental options while isolating the cause.
- Keep a visual regression sample so a font or browser upgrade does not silently reintroduce the defect.
Performance and reliability considerations
Changing one font feature has negligible cost compared with cloning a large page and rasterizing images. The expensive operations are usually full-page layout, large images, high scale factors, and canvas encoding. Capture the smallest required element, avoid unnecessary scale increases, and release references to canvases after uploading or downloading them.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchFor long pages, lazy-loaded images may not exist in the DOM at capture time. Wait for the page’s own loading state and verify that every required asset is available. Cross-origin font or image restrictions can also produce missing content; configure assets for browser access rather than trying to mask a shaping issue with CSS.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Or skip the browser setup
If you need a rendered image or PDF from a URL rather than a client-side canvas, ScreenshotNeo provides a website screenshot API and MCP server. It accepts cookie and consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be disabled. Bot checks, CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the page verdict and billing status in X-Page-Verdict and X-Billed headers.
A one-call capture with cURL:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Python:
import requests
r = requests.get(
"https://api.screenshotneo.com/v1/shot",
params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"},
timeout=90,
)
open("shot.webp", "wb").write(r.content)
Node.js:
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
const data = Buffer.from(await res.arrayBuffer());
See the ScreenshotNeo documentation for the full API. Its options include full-page capture with lazy images loaded, CSS-selector element capture, dark mode, device presets and custom viewports, retina scale, PDF paper settings and page ranges, custom CSS and JavaScript, click and wait rules, request blocking, headers, cookies, user agents, authorization, timezone, geolocation, transparent backgrounds, resizing, configurable caching, signed image links, asynchronous webhooks, bulk capture for up to 100 URLs per call, a usage API, and an OpenAPI specification. An MCP server exposes take_screenshot, get_page_info, and capture_pdf to Claude, Cursor, and other MCP clients.
Every plan includes every feature. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots. Create a free ScreenshotNeo account to try it.
FAQ
Is this a confirmed html2canvas bug?
The symptom has been reported, but the available issue description does not identify a universal browser and version range. Treat the ligature declaration as a testable workaround and validate it in your environment.
Best Value
- USB-C STORAGE ON THE GO: This sleek drive is supported by Samsung NAND flash and is incredibly compact to fit in the palm of your hand; Count on reliable performance and fast transfer speeds while staying compact
- PERFORMANCE WITH SPEED: No need to choose between performance and reliability; Experience a fast, powerful flash drive that transfers 4GB files in just 11 seconds with up to 400MB/s USB 3.2 Gen 1 read speeds and is backward compatible with USB 3.0/2.0
- MODERN MEETS ICONIC: The ultra-sleek USB-C drive looks as good as it performs; Featuring a reversible plug, the Type-C inserts into your devices seamlessly every time; Transfer large files with style and ease
- ALWAYS CONNECTED: USB-C is compatible across devices, including laptops, tablets, phones and cameras, with enough space for 63,730 photos or maximum 12 hours of 4K video; With up to 256GB of storage space, this pocket-sized thumb drive comes in handy wherever you go
- TOUGH & TRUSTED: Files stay secure, no matter the terrain; Samsung's flash memory technology makes the Type-C a trustworthy drive to store your valuable data; It's waterproof, shock-proof, magnet-proof, temperature-proof, and X-ray-proof body, plus it's backed by a 5-year limited warranty
Should I disable all OpenType features?
No. Disable only the standard ligature feature for the affected capture unless your design requirements call for another change. Broadly disabling typography features can alter appearance and readability.
Can this fix missing web fonts?
No. It changes ligature shaping after the font is available. Wait for the font to load and correct font-loading or cross-origin problems separately.
Will the workaround change copied or accessible text?
No. It changes glyph selection during rendering; the underlying DOM text remains the same. Using onclone also leaves the live document untouched.
Frequently Asked Questions
Does setting fontFeatureSettings guarantee correct fi rendering?
No. It is a community-reported workaround. Test the exact font, browser, and html2canvas version used by your application.
Is onclone supported in html2canvas?
The current configuration reference documents onclone for modifying the cloned rendering document. Verify behavior against your installed version.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




