Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Install Bengali-capable fonts in the same Ubuntu machine, VM, or container where Puppeteer launches Chromium. Start with fonts-beng, Ubuntu’s Bengali and Assamese font metapackage, then capture the page with Puppeteer’s Page.screenshot(). Installing fonts on a separate developer computer does not make them available to a browser running elsewhere.

Install Bengali fonts in the Ubuntu browser runtime

On the Ubuntu host or inside the container that runs Puppeteer, update the package index and install the Bengali font metapackage:

sudo apt-get update
sudo apt-get install -y fonts-beng

Ubuntu’s Jammy package listing describes fonts-beng as a metapackage for Bengali and Assamese fonts and lists fonts-lohit-beng-bengali, the Lohit TrueType Bengali font, as a dependency. Package contents and versions can vary by Ubuntu release; see the Jammy package details.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When to add the extra Bengali collection

If the base fonts do not meet the page’s needs, or you want the additional collection in the image, install fonts-beng-extra too:

#1 Best Overall
Sale
GMKtec G3S Mini PC Intel N95 Processor (Up to 3.4GHz) 8GB RAM 256GB M.2 SSD
  • 12th Intel Alder Lake N95 Processor – The GMKtec G3 S Mini PC is powered by the 12th Gen Intel N95 processor with 4 cores, 4 threads, 6MB cache and a burst frequency up to 3.4GHz. Compared with N100/N5105/N5100/N5095, the N95 delivers up to 36% overall performance improvement. Perfect for routine tasks, office work, and home entertainment, this compact mini desktop is more convenient than traditional bulky PCs.
  • 8GB RAM & 256GB SSD Storage – Pre-installed with 8GB DDR4 memory and a fast 256GB M.2 2242 SSD, the G3 S mini desktop offers quicker startup, smoother multitasking, and faster file transfers. Enjoy seamless performance whether you’re working on multiple applications, browsing, or streaming content.
  • Rich Interfaces & Connectivity – The G3 S mini computer comes equipped with USB 3.2 (up to 10Gbps), dual HDMI 2.0 (4K@60Hz), and a 3.5mm audio jack. With support for WiFi 5, Bluetooth 5.0, and Gigabit Ethernet (RJ45 1000MbE), it connects easily with monitors, projectors, printers, office equipment, and other peripherals, making it versatile for both home and business use.
  • Dual 4K Display Support – Featuring upgraded Intel UHD Graphics (up to 1000MHz), the G3 S supports 4K video playback and AV1 decoding for a smooth viewing experience. With dual HDMI outputs, you can connect two 4K@60Hz displays simultaneously, enabling efficient multitasking for work and entertainment.
  • GMKTEC WARRANTY - GMKtec offers a 3-year limited warranty (1 year replacement + 2 years parts replacement) for each mini PC, starting from the date of the purchase effective on all sales starting Oct. 2026. All defects due to design and workmanship are covered. With a professional after sales team always ready to attend to your needs, you can simply relax and enjoy your mini PC
sudo apt-get install -y fonts-beng-extra

Ubuntu describes this package as TrueType fonts for Bengali. Its Noble 24.04 LTS package page recommends the Lohit Bengali package. That description does not establish that the extra collection will improve the appearance of every site or provide a particular site’s preferred typeface.

For Docker deployments

Install the packages in the image build, not just on the host that builds or deploys the image. For example, add this to an Ubuntu-based Dockerfile:

RUN apt-get update && apt-get install -y --no-install-recommends fonts-beng 
    && rm -rf /var/lib/apt/lists/*

Add fonts-beng-extra to the install command if you need it. Rebuild the image and restart the Puppeteer runtime so the browser starts with the installed fonts.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Dell Optiplex 7050 SFF Desktop PC Intel i7-7700 4-Cores 3.60GHz 32GB DDR4 1TB SSD WiFi BT HDMI Duel Monitor Support Windows 11 Pro Excellent Condition(Renewed)
  • Model: Dell OptiPlex 7050 Small Form Factor (SFF)
  • Processor: Intel Core i7-7700 3.60 GHz
  • Memory: 32GB DDR4 Ram
  • Storage: 1TB Solid State Drive (SSD) Fast Boot + Storage
  • Operating System: Windows 11 Pro (64-bit)

Capture the Bengali page with Puppeteer

Once fonts are available in the browser runtime, use Puppeteer’s normal screenshot flow: navigate, wait for an appropriate page state, capture, and close the browser. This example uses a URL supplied on the command line and saves a full-page PNG:

import puppeteer from 'puppeteer';

const url = process.argv[2];
if (!url) throw new Error('Usage: node screenshot.mjs <url>');

const browser = await puppeteer.launch({ headless: true });
try {
  const page = await browser.newPage();
  await page.goto(url, { waitUntil: 'networkidle2', timeout: 60_000 });
  await page.screenshot({ path: 'bengali-page.png', fullPage: true });
} finally {
  await browser.close();
}

Save it as screenshot.mjs in a project with Puppeteer installed, then run node screenshot.mjs https://example.com, substituting the Bengali website’s URL. The Puppeteer screenshot API documents Page.screenshot(); its screenshots guide shows a navigation-and-capture flow. Waiting for networkidle2 is a starting point, not a guarantee that every site-specific font or dynamic element has finished loading. Use a page-specific readiness condition when necessary.

Verify fonts and troubleshoot missing Bengali text

If the screenshot still shows tofu (empty boxes), blank characters, or unexpected fallback, check the browser environment and page before installing more packages:

Rank #3
Dell Optiplex 3050 SFF Desktop Computer PC, Intel Quad Core i5-6500 up to 3.6GHz, 16GB DDR4, 256GB SSD, WiFi, 4K Support, DP, HDMI, Windows 11 Pro 64 Bit (Renewed)
  • This Certified Refurbished product is tested and certified to look and work like new. The refurbishing process includes functionality testing, basic cleaning, inspection, and repackaging. The product ships with all relevant accessories, a minimum 90-day warranty, and may arrive in a generic box. Only select sellers who maintain a high-performance bar may offer Certified Refurbished products on Amazon.com.
  • Dell Optiplex 3050 SFF Desktop computer PC, Intel Quad Core i5-6500 up to 3.6GHz, 16GB DDR4, 256GB SSD
  • Includes: USB Keyboard & Mouse, USB WiFi adapter, Microsoft office 30 days free trail.
  • Port: Front: USB 3.0(2), USB 2.0(2); Rear: DP, HDMI, USB 3.0(2), USB 2.0(2), RJ-45.
  • Support 4K (3840x2160) Dual display, makes it easy to connect two monitors at the same time, and you can expand working Windows, mirror content, or expand a single window across multiple monitors.
  • Confirm the package is in the actual runtime. A host installation will not automatically reach a container or remote browser. Check the image or machine that launches Chromium.
  • Inspect the page’s CSS font request. A site may name a particular family; installing Bengali-capable fonts does not guarantee that requested family is present.
  • Check whether the site’s webfont loaded. A failed or delayed webfont request can leave Chromium using a fallback even when system fonts are installed.
  • Try the supplemental package only when appropriate. fonts-beng-extra adds a Bengali TrueType collection, but Ubuntu’s package descriptions do not promise a visual result for a particular site.
  • Capture after the page is ready. If the page loads fonts or content asynchronously, wait for an appropriate selector or other site-specific signal before calling screenshot().
  • Check Chromium’s Linux dependencies separately. Puppeteer lists libfontconfig1 among common Debian/Ubuntu browser dependencies and notes that certain scripts may need extra font files. Its Bengali font setup is not specified there; consult Puppeteer’s Linux troubleshooting guidance.

A successful screenshot call only means a capture was produced; it does not install missing fonts or prove the page used the intended Bengali typeface or shaping.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

For a hosted capture, ScreenshotNeo accepts one GET request with a URL and returns an image or PDF. Its API can remove cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, and failed loads are not billed. It also offers an MCP server for AI agents. The request below saves the returned image response; see the ScreenshotNeo API documentation for request options.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

ScreenshotNeo is a hosted screenshot service, not a substitute for verifying a specific Bengali font configuration in your own Chromium runtime. Its free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots. Learn about ScreenshotNeo, or sign up for 1,000 free screenshots a month with no card.

Frequently Asked Questions

Does installing fonts on my laptop fix a Puppeteer screenshot running in Docker?

No. Install the fonts in the container or other runtime where Chromium launches.

Which package should I try first?

Start with Ubuntu’s fonts-beng metapackage; add fonts-beng-extra if the installed collection does not meet the page’s needs.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

Bestseller No. 2
Dell Optiplex 7050 SFF Desktop PC Intel i7-7700 4-Cores 3.60GHz 32GB DDR4 1TB SSD WiFi BT HDMI Duel Monitor Support Windows 11 Pro Excellent Condition(Renewed)
Dell Optiplex 7050 SFF Desktop PC Intel i7-7700 4-Cores 3.60GHz 32GB DDR4 1TB SSD WiFi BT HDMI Duel Monitor Support Windows 11 Pro Excellent Condition(Renewed)
Model: Dell OptiPlex 7050 Small Form Factor (SFF); Processor: Intel Core i7-7700 3.60 GHz; Memory: 32GB DDR4 Ram
$392.99
Bestseller No. 3
Dell Optiplex 3050 SFF Desktop Computer PC, Intel Quad Core i5-6500 up to 3.6GHz, 16GB DDR4, 256GB SSD, WiFi, 4K Support, DP, HDMI, Windows 11 Pro 64 Bit (Renewed)
Dell Optiplex 3050 SFF Desktop Computer PC, Intel Quad Core i5-6500 up to 3.6GHz, 16GB DDR4, 256GB SSD, WiFi, 4K Support, DP, HDMI, Windows 11 Pro 64 Bit (Renewed)
Includes: USB Keyboard & Mouse, USB WiFi adapter, Microsoft office 30 days free trail.; Port: Front: USB 3.0(2), USB 2.0(2); Rear: DP, HDMI, USB 3.0(2), USB 2.0(2), RJ-45.
$189.99

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.