Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C cookbook
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • redox-osredox-os
  • cookbook
  • Issues
  • #126
Closed
Open
Issue created Feb 24, 2018 by Jeremy Soller@jackpot51Owner10 of 17 checklist items completed10/17 checklist items

NetSurf port

Created by: xTibor

This is a tracking issue for the NetSurf Redox port.

  • Enable PNG decoding I already added a recipe for libpng but I couldn't enable it in NetSurf due to some pkg-config errors. To make NetSurf use the library the NETSURF_USE_PNG variable needs to overridden in the Makefile.config file.

  • Enable TrueType fonts FreeType needs to be ported and the NETSURF_FB_FONTLIB variable needs to be overridden to freetype in the Makefile.config file. The default font paths also need to be overridden.

Path overrides that might work but couldn't test them
override NETSURF_FB_FONT_SANS_SERIF := /ui/fonts/Sans/Fira/Regular.ttf
override NETSURF_FB_FONT_SANS_SERIF_BOLD := /ui/fonts/Sans/Fira/Bold.ttf
override NETSURF_FB_FONT_SANS_SERIF_ITALIC := /ui/fonts/Sans/Fira/Regular.ttf
override NETSURF_FB_FONT_SANS_SERIF_ITALIC_BOLD := /ui/fonts/Sans/Fira/Bold.ttf
override NETSURF_FB_FONT_SERIF := /ui/fonts/Sans/Fira/Regular.ttf
override NETSURF_FB_FONT_SERIF_BOLD := /ui/fonts/Sans/Fira/Bold.ttf
override NETSURF_FB_FONT_MONOSPACE := /ui/fonts/Mono/Fira/Regular.ttf
override NETSURF_FB_FONT_MONOSPACE_BOLD := /ui/fonts/Mono/Fira/Bold.ttf
override NETSURF_FB_FONT_CURSIVE := /ui/fonts/Sans/Fira/Regular.ttf
override NETSURF_FB_FONT_FANTASY := /ui/fonts/Sans/Fira/Regular.ttf
  • Enable JavaScript NetSurf uses Duktape as its JavaScript engine. It uses a custom Python-based build system instead of Autoturd. The NETSURF_USE_DUKTAPE variable needs to overridden in Makefile.config to enable it.

  • Toolbar enhancements The current toolbar is ugly and doesn't fit the rest of the system. The icons needs to be changed to Moka or Faba. The rightmost close button needs to be removed (the window already has a close button on its title bar). It would also be cool to add a home button that points to redox-os.org.

  • Move the alpha fixes from NetSurf to SDL The XRGB8888 to ARGB8888 conversion needs to be done in the SDL library.

  • Make the window resizable Implement SDL_RESIZABLE for SDL_SetVideoMode.

  • Change the window title It should display NetSurf, not SDL.

  • Add a launcher entry Moka/Faba has no icon for NetSurf. There are two options: create one or use the generic browser icon.

  • Fix the double mouse cursor NetSurf tries to hide the original cursor with SDL_ShowCursor(SDL_DISABLE) but it's not implemented in SDL yet.

  • Fix the Unicode issue in SDL

  • Debug why it crashes on exit

  • Fix HTML forms Posting an HTML form throws Could not encode name for generic. Might be missing TRANSLIT support in newlib's iconv.

  • Remove the remaining hacks from the patch

  • Directory listings of local folders only show the first item The scandir function in relibc might be incorrect.

  • Images loaded from HTML are not displayed They are only displayed when they are loaded directly, for example: netsurf-fb https://foo.bar/baz.jpg.

  • cURL errors on loading websites It throws "Failure when receiving data from the peer" (CURLE_RECV_ERROR, error 56) on most of the sites.

  • Package more fonts for NetSurf It needs three new fonts: a serif, a cursive and a fantasy font. It currently uses the sans-serif font as a placeholder for these.

Edited Sep 20, 2019 by Jeremy Soller
Assignee
Assign to
Time tracking