Comments (10)
i solved my self the issues , basically i put roboto's ttf into the asset folder and edited font manifest.
i think that this must mentioned in the linux section to get at least the demo up & running correctly.
from flutter-desktop-embedding.
@awdavies Can you take a look at this?
Before we add Roboto to the pubspec, it would be good to understand why this isn't an issue on macOS (even non-corp). Is Material choosing San Francisco as the font on macOS? If so, is that something we can depend on, or an accident of iOS detection?
from flutter-desktop-embedding.
@pmatteo1998 Can you link the versions of flutter and the engine so I can take a look?
Thanks.
from flutter-desktop-embedding.
i don't know how to get the engine version but i'm using the version forked with my github account so i think you can get it from there
from flutter-desktop-embedding.
Looks like the engine hash is 765b7d46b78fedbd94ed95c94b74e88c0a7fc758
And what's the hash of your Flutter tree?
Did you follow the instructions at https://github.com/google/flutter-desktop-embedding/tree/master/linux to ensure that you're using compatible versions of Flutter and the engine?
from flutter-desktop-embedding.
yes,the command:
git checkout $(cat ../flutter/bin/internal/engine.version)
gives me:
HEAD is now at 06afdfe54... Ensure that application termination callbacks are serviced on the runner thread. (#5247)
from flutter-desktop-embedding.
Okay, so you're not at the head of your fork of the engine tree then. Did you do the build with 06afdfe54..., or with 765b7d46b78fedbd94ed95c94b74e88c0a7fc758?
We still need the hash of your Flutter tree as well.
from flutter-desktop-embedding.
Is Material choosing San Francisco as the font on macOS? If so, is that something we can depend on, or an accident of iOS detection?
I haven't verified by live debugging, but from some source inspection it looks like the answer to this part is here:
https://github.com/flutter/flutter/blob/2958d7d0fce2876cfa1327c89e7ef859dbd6d0a3/packages/flutter/lib/src/foundation/platform.dart#L33
(In general we'll need to figure out how to handle this on desktop; what's there happens to work for us so far, but Windows will be an issue.)
I'm not sure if we can reasonably conditionally bundle Roboto on non-macOS; we may have to just always bundle it. We should see how Flutter handles that for iOS vs Android.
from flutter-desktop-embedding.
Roboto is already present in android at system level so the app do not need to import it.
for ios flutter use a custom font which bundle strict into the asset output.
from flutter-desktop-embedding.
I wasn't able to repro this, but expect that #82 fixed it. If you can still repro with latest trunk, please let me know.
from flutter-desktop-embedding.
Related Issues (20)
- window_size null-safety HOT 1
- Flutter launch error HOT 7
- setInitialRoute for Windows flutter::FlutterViewController HOT 1
- Window size is not correct when i first lunch the app unless i drag it HOT 3
- can't set window size. HOT 4
- App crashes if first minimize the window and then call setWindowVisibility(visible: true) HOT 1
- Throws MissingPluginException during test HOT 2
- setWindowMinSize and setWindowMaxSize not working in Flutter 2.8.0 on Windows 11 HOT 2
- Could not find a file named "plugins/file_chooser/pubspec.yaml HOT 4
- File Description HOT 1
- Linux on ARM: window_size causes "pub get" to hang HOT 3
- [menubar] 'MenuItem' is imported from both 'package:flutter/src/widgets/platform_menu_bar.dart' and 'package:menubar/src/menu_item.dart' HOT 1
- [window_size] Window size cause GitHub timeout during flutter pub get HOT 1
- [menubar] Add "disabled" boolean on NativeMenuItem HOT 1
- Auto-Update flutter desktop app like Discord and Telegram desktop apps HOT 2
- DPI scale reactor needed HOT 1
- Git error. Command: `git clone --mirror git://github.com/google/flutter-desktop-embedding.git HOT 1
- [window_size] setWindowMinSize calculates window size without using DPI on some Windows version HOT 1
- is there in Flutter itself already ? HOT 1
- Run Flutter app in windows 32 bit HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-desktop-embedding.