Files
pdf.js/test/unit/unit_test.html
Calixte Denizet 5ec739bca3 Improve the text layer fonts of Type 3 fonts
- Encode the advances which don't fit in the font with the smallest power of
  two scale, and fit even a single glyph of such a font.
- Express the advances and space gaps of a font sized by its bbox in the em of
  the span, whose height is the bbox height.
- Keep the baseline of a drawing on an edge of the bbox, and don't flip the
  bbox twice when the span height already carries the flip.
- Measure the inferred spaces in the em of the text state which moved the
  text, and skip the gaps whose em is unknown.
2026-11-24 18:05:12 +01:00

53 lines
2.4 KiB
HTML

<!doctype html>
<html>
<head>
<title>PDF.js unit tests</title>
<link rel="stylesheet" href="../../web/text_layer_builder.css" />
<link rel="stylesheet" type="text/css" href="../../node_modules/jasmine-core/lib/jasmine-core/jasmine.css" />
<script src="../../node_modules/jasmine-core/lib/jasmine-core/jasmine.js"></script>
<script src="../../node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js"></script>
<script type="importmap">
{
"imports": {
"pdfjs/": "../../src/",
"pdfjs-lib": "../../src/pdf.js",
"pdfjs-web/": "../../web/",
"pdfjs-test/": "../",
"fluent-bundle": "../../node_modules/@fluent/bundle/esm/index.js",
"fluent-dom": "../../node_modules/@fluent/dom/esm/index.js",
"cached-iterable": "../../node_modules/cached-iterable/src/index.mjs",
"display-binary_data_factory": "../../src/display/binary_data_factory.js",
"display-network_stream": "../../src/display/network_stream.js",
"display-node_utils": "../../src/display/stubs.js",
"web-alt_text_manager": "../../web/alt_text_manager.js",
"web-annotation_editor_params": "../../web/annotation_editor_params.js",
"web-download_manager": "../../web/download_manager.js",
"web-external_services": "../../web/genericcom.js",
"web-null_l10n": "../../web/genericl10n.js",
"web-pdf_attachment_viewer": "../../web/pdf_attachment_viewer.js",
"web-pdf_cursor_tools": "../../web/pdf_cursor_tools.js",
"web-pdf_document_properties": "../../web/pdf_document_properties.js",
"web-pdf_find_bar": "../../web/pdf_find_bar.js",
"web-pdf_layer_viewer": "../../web/pdf_layer_viewer.js",
"web-pdf_outline_viewer": "../../web/pdf_outline_viewer.js",
"web-pdf_presentation_mode": "../../web/pdf_presentation_mode.js",
"web-pdf_thumbnail_viewer": "../../web/pdf_thumbnail_viewer.js",
"web-preferences": "../../web/genericcom.js",
"web-print_service": "../../web/pdf_print_service.js",
"web-secondary_toolbar": "../../web/secondary_toolbar.js",
"web-toolbar": "../../web/toolbar.js",
"web-views_manager": "../../web/views_manager.js"
}
}
</script>
<script src="jasmine-boot.js" type="module"></script>
</head>
<body></body>
</html>