Coder Social home page Coder Social logo

ferret's People

Contributors

aeonofdiscord avatar tastytea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ferret's Issues

Invalid UTF-8 string passed to pango_layout_set_text()

Whenever I click on a link, ferret emits the warning:
(ferret:9074): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
and the adressbar shows gibberish, copy-pasted it is: \Uffffffff or p- or \UffffffffD
I tried on gopher://gopher.quux.org and gopher://tilde.town. The error message in the GTK-interface is: Could not open address.

screenshot_2017-12-18t15 10 40

Search doesn't work

Currently search services (like Veronica) don't do anything in ferret, because showing the search box is slightly complicated. I'm trying to figure out the best way to either:

  • embed a uiEntry into a uiArea, or
  • change the way page rendering works so each node is a separate uiControl

The second option is probably better, but comes with its own problems:

  • uiArea is currently the only scrollable control, so I'd have to figure out a way to make uiBox scrollable
  • uiBox can't change the colour of its own background, so it'd be the system default background colour (not a dealbreaker but kind of annoying)
  • uiLabel doesn't support multiline text (though breaking lines up into separate uiLabels will probably work fine for now)

Binary downloads don't work

Right now ferret doesn't know what to do with binary or image files; it tries to display them as text, and fails. It should be enough, for now, to kick off a simple async worker that dumps files into the user's Downloads folder or the working directory.

Replace gopher codes with icons

Right now ferret is showing type codes on menus, which is minimally informative but not very readable. I'm gonna replace these with some SVG icons.

Can't Change Font Size or Font Family

I have been trying to use the style.css file to change the font size and/or font family. I have tried the following:

  • changing the file ferret-master/share/style.css pre-compilation from 10px to 18px.
  • changing the file /usr/local/share/ferret/style.css after compilation and installation from 10px to 18px.
  • changing the font-family in both files to serif and monaco.

None of the above has worked so far. Ferret always displays a sans-serif font that is relatively small (apparently matching the GtkTextView { font-family: sans; font-size: 10px; } of the original style.css file.

I'm running Devuan GNU/Linux 4.0 Chimaera (which is based off of Debian 11 Bullseye).

Won't compile

$ ./build.sh
-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vagrant/ferret/build
Scanning dependencies of target ferret
[ 25%] Building CXX object CMakeFiles/ferret.dir/src/main.cpp.o
[ 50%] Building CXX object CMakeFiles/ferret.dir/src/worker.cpp.o
[ 75%] Building CXX object CMakeFiles/ferret.dir/src/net.cpp.o
[100%] Linking CXX executable ferret
/usr/bin/ld: CMakeFiles/ferret.dir/src/main.cpp.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/lib/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/ferret.dir/build.make:147: ferret] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/ferret.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
cp: cannot stat 'ferret': No such file or directory

Rendering of large text files is slow

All the content in the page gets redrawn every frame, which is a) an artifact of the way areaDraw() gets called by the UI library, and b) hugely inefficient for large files.

The best fix for this would be to cull nodes that fall outside the viewport when drawing, but as of right now libui doesn't provide a way to get the screen dimensions of a uiArea, so it'll need to be extended to make that work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.