Directories
¶
| Path | Synopsis |
|---|---|
|
Package androidtest is the harness of the device tests (SPEC §24.13): it creates the virtual devices of the emulator in .android-test/ at the module root, starts one headless in a process group of its own under `timeout -k`, with its own adb server and its own HOME so that nothing of the user's ~/.android is read or written, waits for it to boot, and stops it (and the adb server) afterwards.
|
Package androidtest is the harness of the device tests (SPEC §24.13): it creates the virtual devices of the emulator in .android-test/ at the module root, starts one headless in a process group of its own under `timeout -k`, with its own adb server and its own HOME so that nothing of the user's ~/.android is read or written, waits for it to boot, and stops it (and the adb server) afterwards. |
|
Package androidtool builds, installs and signs Android apps for glutter-android (SPEC §24.1): it finds the SDK and the NDK, generates the manifest, runs the Go toolchain once per ABI, links the resources with aapt2, packs the APK with the embedding's classes.dex, aligns and signs it.
|
Package androidtool builds, installs and signs Android apps for glutter-android (SPEC §24.1): it finds the SDK and the NDK, generates the manifest, runs the Go toolchain once per ABI, links the resources with aapt2, packs the APK with the embedding's classes.dex, aligns and signs it. |
|
Package dartfmt formats numbers the way Dart's toString and toStringAsFixed do, so that text printed by ported Flutter code (diagnostics, dumps) reads the same.
|
Package dartfmt formats numbers the way Dart's toString and toStringAsFixed do, so that text printed by ported Flutter code (diagnostics, dumps) reads the same. |
|
Package dbus holds the D-Bus services, in pure Go on godbus: tray, notifications, portals, settings and AT-SPI2.
|
Package dbus holds the D-Bus services, in pure Go on godbus: tray, notifications, portals, settings and AT-SPI2. |
|
atspi
Package atspi is the accessibility bridge for Linux desktops (SPEC §8.10): it mirrors the framework's semantics tree as AT-SPI2 objects on the accessibility bus, so that screen readers such as Orca can read the app and act on it.
|
Package atspi is the accessibility bridge for Linux desktops (SPEC §8.10): it mirrors the framework's semantics tree as AT-SPI2 objects on the accessibility bus, so that screen readers such as Orca can read the app and act on it. |
|
fakebus
Package fakebus is an in-process D-Bus for tests (SPEC §17).
|
Package fakebus is an in-process D-Bus for tests (SPEC §17). |
|
Package engine wires the platform, the renderer and the text layout into the contracts of package ui, and owns the run loop.
|
Package engine wires the platform, the renderer and the text layout into the contracts of package ui, and owns the run loop. |
|
Package fakeclock is a clock that a test moves by hand, so that timers and frame times in tests need no sleeping.
|
Package fakeclock is a clock that a test moves by hand, so that timers and frame times in tests need no sleeping. |
|
Package goid tells goroutines apart.
|
Package goid tells goroutines apart. |
|
Package goldens compares rendered images with the golden PNGs of a package's tests.
|
Package goldens compares rendered images with the golden PNGs of a package's tests. |
|
Package gpu defines the Renderer interface, flattens a ui.Scene into draw commands, and holds the glyph and path atlases shared by the renderers.
|
Package gpu defines the Renderer interface, flattens a ui.Scene into draw commands, and holds the glyph and path atlases shared by the renderers. |
|
canvas2d
Package canvas2d is the last renderer of the web (SPEC §9.6): it draws each frame with the software renderer (internal/gpu/soft) and puts the image into the page's 2D canvas with putImageData, so that an app shows even where neither WebGPU nor WebGL 2 works.
|
Package canvas2d is the last renderer of the web (SPEC §9.6): it draws each frame with the software renderer (internal/gpu/soft) and puts the image into the page's 2D canvas with putImageData, so that an app shows even where neither WebGPU nor WebGL 2 works. |
|
d3d12
Package d3d12 is the Direct3D 12 backend of the explicit renderer (D25, SPEC §9.8): the third explicit.Device, after vulkan and webgpu, for Windows.
|
Package d3d12 is the Direct3D 12 backend of the explicit renderer (D25, SPEC §9.8): the third explicit.Device, after vulkan and webgpu, for Windows. |
|
explicit
Package explicit is the renderer for the explicit GPU APIs, Vulkan and WebGPU (D19): the Device interface that both implement, the design limits they share (SPEC §9.3), and the WGSL shaders with the SPIR-V that glutter-gen makes from them (D20).
|
Package explicit is the renderer for the explicit GPU APIs, Vulkan and WebGPU (D19): the Device interface that both implement, the design limits they share (SPEC §9.3), and the WGSL shaders with the SPIR-V that glutter-gen makes from them (D20). |
|
explicit/fakedevice
Package fakedevice is an explicit.Device that records every call, for the unit tests of the explicit renderer without a GPU.
|
Package fakedevice is an explicit.Device that records every call, for the unit tests of the explicit renderer without a GPU. |
|
gdiwindow
Package gdiwindow is the last-resort renderer of Windows (SPEC §25.5): the software renderer (package soft) draws the frame, and a Presenter puts the image into the window with GDI, StretchDIBits at 1:1 from a top-down 32-bit DIB, into the window's device context, one call for each damaged rectangle.
|
Package gdiwindow is the last-resort renderer of Windows (SPEC §25.5): the software renderer (package soft) draws the frame, and a Presenter puts the image into the window with GDI, StretchDIBits at 1:1 from a top-down 32-bit DIB, into the window's device context, one call for each damaged rectangle. |
|
gles
Package gles is the OpenGL ES 3.0 renderer.
|
Package gles is the OpenGL ES 3.0 renderer. |
|
gles/glwebtest
command
Command glwebtest is the program of the browser tests of the WebGL 2 renderer (step 21.4, SPEC §9.1, §17).
|
Command glwebtest is the program of the browser tests of the WebGL 2 renderer (step 21.4, SPEC §9.1, §17). |
|
gputest
Package gputest has what the display tests of the GPU renderers share: the scenes the renderers are compared on, the comparison with the software renderer's image, and its tolerance.
|
Package gputest has what the display tests of the GPU renderers share: the scenes the renderers are compared on, the comparison with the software renderer's image, and its tolerance. |
|
gputest/editorscene
Package editorscene makes the scenes of a frame in which only the caret of a text editor blinks, for the allocation tests and benchmarks of the renderers (SPEC §15, step 29.15).
|
Package editorscene makes the scenes of a frame in which only the caret of a text editor blinks, for the allocation tests and benchmarks of the renderers (SPEC §15, step 29.15). |
|
nativewindow
Package nativewindow is the last-resort renderer of Android (SPEC §24.4): the software renderer (package soft) draws the frame, and it is copied into the CPU buffers of the window's ANativeWindow (setBuffersGeometry, lock, unlockAndPost, loaded from libandroid.so through purego).
|
Package nativewindow is the last-resort renderer of Android (SPEC §24.4): the software renderer (package soft) draws the frame, and it is copied into the CPU buffers of the window's ANativeWindow (setBuffersGeometry, lock, unlockAndPost, loaded from libandroid.so through purego). |
|
shadercache
Package shadercache keeps what the GPU drivers compile for Glutter between runs: the binaries of the OpenGL ES programs and the pipeline cache of Vulkan (SPEC §9.7).
|
Package shadercache keeps what the GPU drivers compile for Glutter between runs: the binaries of the OpenGL ES programs and the pipeline cache of Vulkan (SPEC §9.7). |
|
soft
Package soft is the pure-Go software rasterizer, used for golden tests and headless rendering.
|
Package soft is the pure-Go software rasterizer, used for golden tests and headless rendering. |
|
textdraw
Package textdraw turns the drawing of a paragraph into ordinary drawing operations, for the renderers: each glyph is a path, drawn with its origin on a quarter of a pixel horizontally and on a pixel vertically, so that the coverage of a glyph at a size can be cached for the four subpixel positions (SPEC §9.1).
|
Package textdraw turns the drawing of a paragraph into ordinary drawing operations, for the renderers: each glyph is a path, drawn with its origin on a quarter of a pixel horizontally and on a pixel vertically, so that the coverage of a glyph at a size can be cached for the four subpixel positions (SPEC §9.1). |
|
vulkan
Package vulkan is the Vulkan backend of the explicit renderer (SPEC §9.4): it loads libvulkan.so.1 through purego and implements explicit.Device on it.
|
Package vulkan is the Vulkan backend of the explicit renderer (SPEC §9.4): it loads libvulkan.so.1 through purego and implements explicit.Device on it. |
|
webgpu
Package webgpu is the WebGPU backend of the explicit renderer (SPEC §9.5): an explicit.Device over navigator.gpu, through syscall/js, so that internal/gpu/explicit draws on the web the way it draws on Vulkan.
|
Package webgpu is the WebGPU backend of the explicit renderer (SPEC §9.5): an explicit.Device over navigator.gpu, through syscall/js, so that internal/gpu/explicit draws on the web the way it draws on Vulkan. |
|
webgpu/gpuwebtest
command
Command gpuwebtest is the program of the browser tests of the WebGPU renderer (step 21.5, SPEC §9.5, §17).
|
Command gpuwebtest is the program of the browser tests of the WebGPU renderer (step 21.5, SPEC §9.5, §17). |
|
Package leaktest checks that a scenario does not leak memory: it runs a step many times, and compares the live heap and the goroutines after N steps and after 4N steps (SPEC §15, "Memory over time").
|
Package leaktest checks that a scenario does not leak memory: it runs a step many times, and compares the live heap and the goroutines after N steps and after 4N steps (SPEC §15, "Memory over time"). |
|
Package opts holds the helper behind the trailing options parameter of every constructor (SPEC §12.1).
|
Package opts holds the helper behind the trailing options parameter of every constructor (SPEC §12.1). |
|
Package perfstats reads the engine's log lines that the performance tools measure with: the "first frame presented" line, the per-second "frames" statistics of GLUTTER_FRAME_STATS=1 and the key=value pairs of slog's text format.
|
Package perfstats reads the engine's log lines that the performance tools measure with: the "first frame presented" line, the per-second "frames" statistics of GLUTTER_FRAME_STATS=1 and the key=value pairs of slog's text format. |
|
Package platform defines the interface between the engine and an operating system backend, together with the types shared by all backends.
|
Package platform defines the interface between the engine and an operating system backend, together with the types shared by all backends. |
|
android
Package android is the platform backend for Android (GOOS=android, SPEC §24): the JNI entry points the Java embedding calls, the thread that runs the program's main, the log lines sent to logcat, and, from step 25.3, the looper, the surface, the input and the services.
|
Package android is the platform backend for Android (GOOS=android, SPEC §24): the JNI entry points the Java embedding calls, the thread that runs the program's main, the log lines sent to logcat, and, from step 25.3, the looper, the surface, the input and the services. |
|
fake
Package fake is a scripted platform for tests: it replays queued events and records what the engine asks of it.
|
Package fake is a scripted platform for tests: it replays queued events and records what the engine asks of it. |
|
linux
Package linux holds what the Linux backends share: the event loop, the key tables, system settings and the choice between Wayland and X11.
|
Package linux holds what the Linux backends share: the event loop, the key tables, system settings and the choice between Wayland and X11. |
|
linux/dl
Package dl is the one safe way to load C libraries and call into them without cgo: it wraps purego's Dlopen, Dlsym and callbacks, tags every failure, and offers the libc helpers (malloc, free, C strings) that the backends share.
|
Package dl is the one safe way to load C libraries and call into them without cgo: it wraps purego's Dlopen, Dlsym and callbacks, tags every failure, and offers the libc helpers (malloc, free, C strings) that the backends share. |
|
linux/dl/layouttest
Package layouttest is the helper for the layout test that every Go mirror of a C struct needs (SPEC §8.1 rule 3).
|
Package layouttest is the helper for the layout test that every Go mirror of a C struct needs (SPEC §8.1 rule 3). |
|
linux/fontconfig
Package fontconfig binds libfontconfig (through purego, SPEC §8.1) to match a font family, weight, slant and language to the font files of the system, in the fallback order the user's fontconfig settings give.
|
Package fontconfig binds libfontconfig (through purego, SPEC §8.1) to match a font family, weight, slant and language to the font files of the system, in the fallback order the user's fontconfig settings give. |
|
linux/ime
Package ime connects a window system backend to an input method framework over D-Bus (IBus or Fcitx5): the same way for X11, and for Wayland on a compositor without text-input-v3 (SPEC §8.3, §8.6).
|
Package ime connects a window system backend to an input method framework over D-Bus (IBus or Fcitx5): the same way for X11, and for Wayland on a compositor without text-input-v3 (SPEC §8.3, §8.6). |
|
linux/ime/imetest
Package imetest has test doubles for the input method of the Linux backends: an input method that records its calls, and a poster that lets the test run what the bridge hands to the UI thread.
|
Package imetest has test doubles for the input method of the Linux backends: an input method that records its calls, and a poster that lets the test run what the bridge hands to the UI thread. |
|
linux/input
Package input turns what the Linux windowing systems report about pointers and touch screens into ui.PointerData, the same way for Wayland and X11.
|
Package input turns what the Linux windowing systems report about pointers and touch screens into ui.PointerData, the same way for Wayland and X11. |
|
linux/wayland
Package wayland is the Wayland backend.
|
Package wayland is the Wayland backend. |
|
linux/wayland/decor
Package decor binds libdecor, the library that draws native title bars for Wayland compositors without server-side decorations (GNOME).
|
Package decor binds libdecor, the library that draws native title bars for Wayland compositors without server-side decorations (GNOME). |
|
linux/wayland/fakecomp
Package fakecomp is a tiny fake Wayland compositor for tests: it speaks the wire protocol over a socket pair, answers the requests that the tests send, and logs them.
|
Package fakecomp is a tiny fake Wayland compositor for tests: it speaks the wire protocol over a socket pair, answers the requests that the tests send, and logs them. |
|
linux/wayland/wl
Package wl is the Wayland client: the runtime over libwayland-client, which is bound with purego, and the Go bindings of every protocol in ../protocols, generated by `glutter-gen wayland` into the *_gen.go files.
|
Package wl is the Wayland client: the runtime over libwayland-client, which is bound with purego, and the Go bindings of every protocol in ../protocols, generated by `glutter-gen wayland` into the *_gen.go files. |
|
linux/x11
Package x11 is the X11 backend.
|
Package x11 is the X11 backend. |
|
linux/xkb
Package xkb binds libxkbcommon (through purego, SPEC §8.1) and turns key presses into Flutter key data: the physical key, the logical key and the text, for any keyboard layout, with dead keys and compose sequences.
|
Package xkb binds libxkbcommon (through purego, SPEC §8.1) and turns key presses into Flutter key data: the physical key, the logical key and the text, for any keyboard layout, with dead keys and compose sequences. |
|
mobile
Package mobile is the logic of the desktop services of package desktop on a mobile platform (Android in 1.6, SPEC §24.11): opening a URI with an intent and showing notifications through the system's notification manager.
|
Package mobile is the logic of the desktop services of package desktop on a mobile platform (Android in 1.6, SPEC §24.11): opening a URI with an intent and showing notifications through the system's notification manager. |
|
textedit
Package textedit is the model behind a text field that the platform keeps outside the framework (the hidden DOM field of the web, SPEC §23.5, and the Editable of the Android input method, SPEC §24.6), as plain Go: the editing state in UTF-16 units, the composition, and the editor that turns each change of the platform's field into the ui.TextInputEvent that makes the framework's field the same.
|
Package textedit is the model behind a text field that the platform keeps outside the framework (the hidden DOM field of the web, SPEC §23.5, and the Editable of the Android input method, SPEC §24.6), as plain Go: the editing state in UTF-16 units, the composition, and the editor that turns each change of the platform's field into the ui.TextInputEvent that makes the framework's field the same. |
|
web
Package web is the platform backend of the web (GOOS=js GOARCH=wasm, SPEC §23): one window that is a canvas in a host element of the page, frames from requestAnimationFrame, and the lifecycle and the settings of the browser.
|
Package web is the platform backend of the web (GOOS=js GOARCH=wasm, SPEC §23): one window that is a canvas in a host element of the page, frames from requestAnimationFrame, and the lifecycle and the settings of the browser. |
|
web/desktoptest
command
Command desktoptest is the program of the browser tests of the web desktop services (step 21.6, SPEC §17, §23.7).
|
Command desktoptest is the program of the browser tests of the web desktop services (step 21.6, SPEC §17, §23.7). |
|
web/inputtest
command
Command inputtest is the program of the browser tests of the web input (step 21.2, SPEC §17, §23.4).
|
Command inputtest is the program of the browser tests of the web input (step 21.2, SPEC §17, §23.4). |
|
web/synthetic
Package synthetic dispatches synthetic DOM events at the canvas of a Glutter app, the way the browser would deliver real ones: the debug-only script of the web platform (GLUTTER_DEV_EVENTS, for proof screenshots) and the browser tests use it.
|
Package synthetic dispatches synthetic DOM events at the canvas of a Glutter app, the way the browser would deliver real ones: the debug-only script of the web platform (GLUTTER_DEV_EVENTS, for proof screenshots) and the browser tests use it. |
|
web/texttest
command
Command texttest is the program of the browser tests of the web text input and clipboard (step 21.3, SPEC §17, §23.5).
|
Command texttest is the program of the browser tests of the web text input and clipboard (step 21.3, SPEC §17, §23.5). |
|
windows
Package windows is the Win32 platform backend (SPEC §25): the windows, the message loop, the frame pacing, the displays and the process start of Windows (step 28.2), behind internal/platform; the pointer input (step 28.3), the keyboard (step 28.4), the text input and the input methods (step 28.5, with package ime); the clipboard, the system settings, the list of fonts and the lifecycle (step 28.6), and the tray, the notifications, the file dialogs and the opening of URIs (step 28.11); and OLE drag and drop and the windows that an app opens besides the first (step 28.12, with package ole).
|
Package windows is the Win32 platform backend (SPEC §25): the windows, the message loop, the frame pacing, the displays and the process start of Windows (step 28.2), behind internal/platform; the pointer input (step 28.3), the keyboard (step 28.4), the text input and the input methods (step 28.5, with package ime); the clipboard, the system settings, the list of fonts and the lifecycle (step 28.6), and the tray, the notifications, the file dialogs and the opening of URIs (step 28.11); and OLE drag and drop and the windows that an app opens besides the first (step 28.12, with package ole). |
|
windows/ime
Package ime is the text input of the Windows backend as plain Go: the composition of an input method (IMM32, SPEC §25.7) turned into the ui.TextInputEvents of the framework by the model of internal/platform/textedit, the characters of the keyboard that no key made, and the places of the composition and candidate windows.
|
Package ime is the text input of the Windows backend as plain Go: the composition of an input method (IMM32, SPEC §25.7) turned into the ui.TextInputEvents of the framework by the model of internal/platform/textedit, the characters of the keyboard that no key made, and the places of the composition and candidate windows. |
|
windows/ime/imetest
Package imetest is a fake of the input method manager (ime.IMM) for the tests of the text input of Windows, in the ime package and in the window code that uses it.
|
Package imetest is a fake of the input method manager (ime.IMM) for the tests of the text input of Windows, in the ime package and in the window code that uses it. |
|
windows/ole
Package ole is the OLE drag and drop of the Windows backend (SPEC §25.10): the COM objects that Go makes for it (IDropTarget, IDropSource, IDataObject and IEnumFORMATETC, SPEC §25.2), the reader of a data object that another program made, and the plain-Go models they stand on, which are tested on any host: the effects and the keys that choose among them, the formats and their names, the set of data that a drag offers, the enumerator of formats, and the decisions of the drag source.
|
Package ole is the OLE drag and drop of the Windows backend (SPEC §25.10): the COM objects that Go makes for it (IDropTarget, IDropSource, IDataObject and IEnumFORMATETC, SPEC §25.2), the reader of a data object that another program made, and the plain-Go models they stand on, which are tested on any host: the effects and the keys that choose among them, the formats and their names, the set of data that a drag offers, the enumerator of formats, and the decisions of the drag source. |
|
windows/uia
Package uia is the accessibility bridge of Windows (SPEC §25.11): it mirrors the framework's semantics tree as UI Automation providers, so that Narrator, NVDA, JAWS and Accessibility Insights can read the app and act on it.
|
Package uia is the accessibility bridge of Windows (SPEC §25.11): it mirrors the framework's semantics tree as UI Automation providers, so that Narrator, NVDA, JAWS and Accessibility Insights can read the app and act on it. |
|
windows/uia/callshim
Package callshim calls a function of the Windows calling convention with floating-point arguments, for the tests of UI Automation (SPEC §25.2): syscall.SyscallN passes integers only, and a COM method that takes a double (IRawElementProviderFragmentRoot::ElementProviderFromPoint, IRangeValueProvider::SetValue, and the client's SetValue and SetScrollPercent) gets it in a floating register.
|
Package callshim calls a function of the Windows calling convention with floating-point arguments, for the tests of UI Automation (SPEC §25.2): syscall.SyscallN passes integers only, and a COM method that takes a double (IRawElementProviderFragmentRoot::ElementProviderFromPoint, IRangeValueProvider::SetValue, and the client's SetValue and SetScrollPercent) gets it in a floating register. |
|
windows/uia/semtree
Package semtree builds semantics updates for the tests of UI Automation (SPEC §25.11): the nodes the way the engine fills them in, so that a test states only what it cares about.
|
Package semtree builds semantics updates for the tests of UI Automation (SPEC §25.11): the nodes the way the engine fills them in, so that a test states only what it cares about. |
|
windows/uia/uiatest
Package uiatest is the UI Automation client that tests use to look at the providers of package uia the way Narrator, NVDA and Accessibility Insights do (SPEC §25.11, §25.13): it creates CUIAutomation, finds the element of a window, walks the tree, reads properties, calls the patterns and listens to events.
|
Package uiatest is the UI Automation client that tests use to look at the providers of package uia the way Narrator, NVDA and Accessibility Insights do (SPEC §25.11, §25.13): it creates CUIAutomation, finds the element of a window, walks the tree, reads properties, calls the patterns and listens to events. |
|
windows/win32
Package win32 is the one package that holds the bindings and the helpers for calling Windows without cgo (SPEC §25.2): System32-only DLL loading, the procedure tables, UTF-16 strings, the HRESULT and GetLastError errors, the COM calls over a vtable, the COM objects that Go implements, the callbacks, and the first kernel32 bindings.
|
Package win32 is the one package that holds the bindings and the helpers for calling Windows without cgo (SPEC §25.2): System32-only DLL loading, the procedure tables, UTF-16 strings, the HRESULT and GetLastError errors, the COM calls over a vtable, the COM objects that Go implements, the callbacks, and the first kernel32 bindings. |
|
windows/win32/layouttest
Package layouttest checks the Go mirrors of Win32 and COM structures, and the positions of COM methods in their vtables, against the mingw-w64 headers (SPEC §25.2, §6.3 rule 11).
|
Package layouttest checks the Go mirrors of Win32 and COM structures, and the positions of COM methods in their vtables, against the mingw-w64 headers (SPEC §25.2, §6.3 rule 11). |
|
Package proof holds the scenes that cmd/glutter-proof renders to prove, with a picture, that a step of docs/IMPLEMENTATION.md works.
|
Package proof holds the scenes that cmd/glutter-proof renders to prove, with a picture, that a step of docs/IMPLEMENTATION.md works. |
|
widgetscenes
Package widgetscenes holds the proof scenes that are made by pumping a widget tree through gluttertest.
|
Package widgetscenes holds the proof scenes that are made by pumping a widget tree through gluttertest. |
|
Package renderhost builds a RendererBinding on a fake engine with one view, lays out and paints a render tree through the pipeline, and keeps the scenes that the view rendered.
|
Package renderhost builds a RendererBinding on a fake engine with one view, lays out and paints a render tree through the pipeline, and keeps the scenes that the view rendered. |
|
Package renderingtest is a temporary harness for the tests of the rendering library: it builds a RendererBinding on a fake engine, lays out and paints a render tree through the pipeline, and renders the scene with the software renderer.
|
Package renderingtest is a temporary harness for the tests of the rendering library: it builds a RendererBinding on a fake engine, lays out and paints a render tree through the pipeline, and renders the scene with the software renderer. |
|
Package svg parses SVG documents into a tree of resolved drawing commands.
|
Package svg parses SVG documents into a tree of resolved drawing commands. |
|
Package text lays out paragraphs on go-text: the font collection, shaping, line breaking, bidi and glyph outlines.
|
Package text lays out paragraphs on go-text: the font collection, shaping, line breaking, bidi and glyph outlines. |
|
androidfonts
Package androidfonts finds the system fonts of an Android device the way Skia's Android font manager does (src/ports/SkFontMgr_android.cpp and SkFontMgr_android_parser.cpp): it reads the font configuration of the system (/system/etc/fonts.xml, and the fonts_customization.xml of the vendor), builds the families with their names, aliases, weights, styles, languages and variants, and answers a request for a family, a weight, a slant and a language with the fonts in the order the system would try them, and a request for a character with the first font that has it.
|
Package androidfonts finds the system fonts of an Android device the way Skia's Android font manager does (src/ports/SkFontMgr_android.cpp and SkFontMgr_android_parser.cpp): it reads the font configuration of the system (/system/etc/fonts.xml, and the fonts_customization.xml of the vendor), builds the families with their names, aliases, weights, styles, languages and variants, and answers a request for a family, a weight, a slant and a language with the fonts in the order the system would try them, and a request for a character with the first font that has it. |
|
fonttest
Package fonttest makes test fonts from the fonts that the module bundles: the same outlines under another character map, so that a test can have many fonts that cover different characters, and a font whose character map cannot be read, without keeping font files in the repository.
|
Package fonttest makes test fonts from the fonts that the module bundles: the same outlines under another character map, so that a test can have many fonts that cover different characters, and a font whose character map cannot be read, without keeping font files in the repository. |
|
layout
Package layout lays out paragraphs: it turns the styled text of a ui.ParagraphBuilder into lines of shaped glyphs with go-text.
|
Package layout lays out paragraphs: it turns the styled text of a ui.ParagraphBuilder into lines of shaped glyphs with go-text. |
|
winfonts
Package winfonts finds the system fonts of Windows: it answers a request for a family, a weight, a slant and a language with the fonts in the order Windows would try them, and a request for a character with the first font of the fallback chain that has it (SPEC §25.8).
|
Package winfonts finds the system fonts of Windows: it answers a request for a family, a weight, a slant and a language with the fonts in the order Windows would try them, and a request for a character with the first font of the fallback chain that has it (SPEC §25.8). |
|
Package webtest is the harness that runs a Glutter web app in a headless browser (SPEC §17 "Browser tests", §23.8): an httptest server that serves a build made by internal/webtool and collects the PNG and the results the page posts, launchers for Chromium and Firefox with temporary profiles that run under timeout in their own process group and are killed when the test ends, and Shot, which glutter-web's shot command and the browser tests use.
|
Package webtest is the harness that runs a Glutter web app in a headless browser (SPEC §17 "Browser tests", §23.8): an httptest server that serves a build made by internal/webtool and collects the PNG and the results the page posts, launchers for Chromium and Firefox with temporary profiles that run under timeout in their own process group and are killed when the test ends, and Shot, which glutter-web's shot command and the browser tests use. |
|
Package webtool packages a Glutter app for the web (SPEC §23.1): it builds the program for js/wasm, writes the directory that a static web server can serve (index.html, wasm_exec.js, app.wasm and app.wasm.gz), and serves such a directory with the right types and with the gzip file for a browser that accepts it.
|
Package webtool packages a Glutter app for the web (SPEC §23.1): it builds the program for js/wasm, writes the directory that a static web server can serve (index.html, wasm_exec.js, app.wasm and app.wasm.gz), and serves such a directory with the right types and with the gzip file for a browser that accepts it. |
|
Package winetest is the harness of the tests that run a Windows program under Wine (SPEC §25.13): it makes the Wine prefix in .wine-test/prefix at the module root (with the workaround for the first boot, under a lock), starts a headless X server (scripts/headless-x11.sh) and the program under `timeout -k`, in a process group of its own and with the environment of §25.13, stops everything with `wineserver -k`, and finds what is left (Leftovers reads /proc).
|
Package winetest is the harness of the tests that run a Windows program under Wine (SPEC §25.13): it makes the Wine prefix in .wine-test/prefix at the module root (with the workaround for the first boot, under a lock), starts a headless X server (scripts/headless-x11.sh) and the program under `timeout -k`, in a process group of its own and with the environment of §25.13, stops everything with `wineserver -k`, and finds what is left (Leftovers reads /proc). |
|
Package wintool builds, runs and takes screenshots of Glutter apps for Windows, for glutter-windows (SPEC §25.1): it generates the application manifest, writes the resources of the .exe (the manifest, the icon with its sizes, the version information) as a COFF object with a .rsrc section in pure Go, runs the Go toolchain with that object added through `go build -overlay`, and starts the .exe under Wine through internal/winetest.
|
Package wintool builds, runs and takes screenshots of Glutter apps for Windows, for glutter-windows (SPEC §25.1): it generates the application manifest, writes the resources of the .exe (the manifest, the icon with its sizes, the version information) as a COFF object with a .rsrc section in pure Go, runs the Go toolchain with that object added through `go build -overlay`, and starts the .exe under Wine through internal/winetest. |
Click to show internal directories.
Click to hide internal directories.